Skip to content
Permalink
Browse files

Improve logic for Psalm

  • Loading branch information...
muglug committed May 30, 2019
1 parent 7839da1 commit 1321b44e9f300dee2aadd705ee337cf9d04e1c52
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Psalm/Internal/Fork/Pool.php
@@ -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);
}

0 comments on commit 1321b44

Please sign in to comment.
You can’t perform that action at this time.