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) {
return $server->stop($workerId);
}
while ($server->stats()['coroutine_num'] > 1) {
Coroutine::sleep(0.01);
while ($server->stats()['coroutine_num'] > 0) {
sleep(0.01);
}
return $server->stop($workerId);
}