Skip to content

Commit

Permalink
Merge pull request #36 from perk11/fix-1-process
Browse files Browse the repository at this point in the history
Clean up processes before waiting
  • Loading branch information
liuggio committed Sep 23, 2015
2 parents 7e3fa20 + d2c117d commit 2c592ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Command/ParallelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ private function doExecute(InputInterface $input,
/**
* @var Processes $processes
*/
$processes->cleanUP(); //it is not getting called with -p1 after the last process otherwise
$processes->wait(function() use ($progressBar, $queue, $processes) {
$progressBar->renderBody($queue, $processes);
});
Expand Down

0 comments on commit 2c592ac

Please sign in to comment.