Skip to content

Commit

Permalink
Added fix for running not returned by chaining ready
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxwilko committed Jul 31, 2024
1 parent 329e0fa commit f0ebb60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProcessManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function spawn(string $class, int $processes = 1): static
$this->processes[] = new Process($class, $this->bootstrap);
}

while (!array_product(array_map(fn (Process $process) => $process->ready(), $this->processes))) {
while (!array_product(array_map(fn (Process $process) => $process->ready()->running(), $this->processes))) {
usleep(500);
}

Expand Down

0 comments on commit f0ebb60

Please sign in to comment.