This commit is contained in:
2021-02-26 20:04:16 +08:00
parent 893b0abb58
commit 8f9b75d19f
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -64,8 +64,7 @@ class OnWorkerStart extends Callback
if ($sigkill === false) {
return $server->stop($workerId);
}
while ($server->stats()['coroutine_num'] > 0) {
var_dump($server->stats()['coroutine_num']);
while (Snowflake::app()->isRun()) {
sleep(1);
}
return $server->stop($workerId);