This commit is contained in:
as2252258@163.com
2021-02-27 03:38:32 +08:00
parent 09fed5ea01
commit 3db95144a2
+4 -2
View File
@@ -71,8 +71,10 @@ class OnWorkerStart extends Callback
Coroutine::sleep(1);
}
}
$server->stop($workerId);
var_dump(Coroutine::waitPid($server->worker_pid));
go(function () use ($server) {
Coroutine::waitPid($server->worker_pid);
});
$server->stop($workerId);;
} catch (\Throwable $exception) {
$this->addError($exception);
}