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