This commit is contained in:
2021-02-26 20:01:33 +08:00
parent 10bf20abad
commit f5d09ee4e2
+2 -2
View File
@@ -64,8 +64,8 @@ class OnWorkerStart extends Callback
if ($sigkill === false) { if ($sigkill === false) {
return $server->stop($workerId); return $server->stop($workerId);
} }
while ($server->stats()['coroutine_num'] > 1) { while ($server->stats()['coroutine_num'] > 0) {
Coroutine::sleep(0.01); sleep(0.01);
} }
return $server->stop($workerId); return $server->stop($workerId);
} }