diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index db9e0db6..1abfcd0e 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -72,7 +72,7 @@ class OnWorkerStart extends Callback Coroutine::sleep(1); } } - $server->stop($server->worker_id, true); + $server->stop($server->worker_pid); } catch (\Throwable $exception) { $this->addError($exception); }