From 10bf20abadfbf5c141968614a8253a4f3f5f8e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 26 Feb 2021 19:59:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Events/OnWorkerStart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index f726d0bf..f605abd9 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -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);