From 44540d9cc026405b81b3ae853a2666c23165bbf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 26 Feb 2021 18:00:24 +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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 35bc81f6..a867ac88 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -57,6 +57,9 @@ class OnWorkerStart extends Callback return; } while (true) { + if (!isset(Coroutine::getContext(Coroutine::getPcid())['isComplete'])) { + break; + } $content = Coroutine::getContext(Coroutine::getPcid())['isComplete']; if ($content === true) { break;