From 88327bfcf6d3489a80baee38f87ab94da549e194 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 1 Mar 2021 00:25:04 +0800 Subject: [PATCH] modify --- HttpServer/Events/OnWorkerStart.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index cd64822e..1c022031 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -51,7 +51,7 @@ class OnWorkerStart extends Callback $this->onWorker($server, $worker_id); } - Coroutine::create([$this, 'onSignal'], $server, $worker_id); + Coroutine\go([$this, 'onSignal'], $server, $worker_id); } @@ -101,6 +101,7 @@ class OnWorkerStart extends Callback $env = ucfirst(Snowflake::getEnvironmental()); $receive = Coroutine::waitSignal($this->signal, -1); + var_dump($receive); while ($receive === true) { if ($this->isPrint === false) { $this->warning(sprintf('Receive %s#%d stop event.', $env, $worker_id));