Skip to content

Commit 9f2f0d5

Browse files
author
Greg Bowler
authored
Merge pull request #2 from PhpGt/cpu
Add sleep to avoid hogging CPU
2 parents ff80da8 + 4e4093e commit 9f2f0d5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Command/AbstractWebEngineCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ public function executeScript(
8686
if(strlen(trim($errorOutput)) > 0) {
8787
$this->write($errorOutput, Stream::ERROR);
8888
}
89+
90+
usleep(100000);
8991
}
9092
while($processPool->numRunning() > 0);
9193
}

0 commit comments

Comments
 (0)