Skip to content

Commit

Permalink
Clean up processes before waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
perk11 committed Sep 22, 2015
1 parent 7e3fa20 commit d2c117d
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 d2c117d

Please sign in to comment.