We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 877aed9 commit 6710b45Copy full SHA for 6710b45
1 file changed
src/Process.php
@@ -142,13 +142,13 @@ protected function waitAll()
142
$this->log("[worker:$id $pid] process stopped with status $status");
143
unset(static::$workers[$id]);
144
145
- if (!static::$shutdown && $this->refork) {
+ if ($this->refork && !static::$shutdown) {
146
// refork
147
$this->forkWorker($id);
148
}
149
150
151
- if (static::$shutdown && empty(static::$workers)) {
+ if (empty(static::$workers) && (static::$shutdown || $this->refork == false)) {
152
break;
153
154
0 commit comments