Skip to content

Commit

Permalink
Merge pull request #2 from PhpGt/cpu
Browse files Browse the repository at this point in the history
Add sleep to avoid hogging CPU
  • Loading branch information
g105b authored Aug 19, 2019
2 parents ff80da8 + 4e4093e commit 9f2f0d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Command/AbstractWebEngineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ public function executeScript(
if(strlen(trim($errorOutput)) > 0) {
$this->write($errorOutput, Stream::ERROR);
}

usleep(100000);
}
while($processPool->numRunning() > 0);
}
Expand Down

0 comments on commit 9f2f0d5

Please sign in to comment.