Skip to content

Commit 4e4093e

Browse files
author
Greg Bowler
committed
Add sleep to avoid hogging CPU
closes phpgt/Daemon#4
1 parent ff80da8 commit 4e4093e

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)