This commit is contained in:
2021-02-26 20:01:44 +08:00
parent f5d09ee4e2
commit 820f19e126
+1 -1
View File
@@ -65,7 +65,7 @@ class OnWorkerStart extends Callback
return $server->stop($workerId);
}
while ($server->stats()['coroutine_num'] > 0) {
sleep(0.01);
sleep(1);
}
return $server->stop($workerId);
}