From d98c7ee714871e9c39b0af7422d14abe989ac03c Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 27 Feb 2021 04:54:32 +0800 Subject: [PATCH] modify --- HttpServer/Events/OnWorkerStart.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 3f99cf54..d1809a9c 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -39,9 +39,9 @@ class OnWorkerStart extends Callback { Coroutine::set([ 'enable_deadlock_check' => false, -// 'exit_condition' => function () { -// return Coroutine::stats()['coroutine_num'] === 0; -// } + 'exit_condition' => function () { + return Coroutine::stats()['coroutine_num'] === 0; + } ]); putenv('workerId=' . $worker_id);