Skip to content

Commit

Permalink
Improve logic for Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed May 30, 2019
1 parent 7839da1 commit 1321b44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Psalm/Internal/Fork/Pool.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ public function __construct(
$bytes_written = @fwrite($write_stream, $serialized_message);
if (strlen($serialized_message) !== $bytes_written) {
$retries = 0;
while (!$bytes_written && (++$retries) < 10) {
while (!$bytes_written && $retries < 10) {
++$retries;
usleep(100000);
$bytes_written = @fwrite($write_stream, $serialized_message);
}
Expand Down

0 comments on commit 1321b44

Please sign in to comment.