Skip to content

Commit

Permalink
Do not lock global commands
Browse files Browse the repository at this point in the history
  • Loading branch information
maximkott committed Mar 10, 2017
1 parent a25d300 commit 083703f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Weew/Console/Console.php
Expand Up @@ -413,7 +413,9 @@ protected function handleArgs(array $args) {
*/
protected function runCommand(ICommand $command, $isolate = true) {
try {
$this->commandExecutionLock->lockCommand($command, $this->getAllowParallel());
if ( ! $command->isGlobal()) {
$this->commandExecutionLock->lockCommand($command, $this->getAllowParallel());
}

if ($isolate) {
$input = clone $this->input;
Expand Down

0 comments on commit 083703f

Please sign in to comment.