From eb3ba3b94ba99a12f28eb38474f1e398bcf8acfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 1 Mar 2021 17:36:34 +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 --- System/Abstracts/BaseApplication.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/System/Abstracts/BaseApplication.php b/System/Abstracts/BaseApplication.php index 7d97a712..30ce6ef3 100644 --- a/System/Abstracts/BaseApplication.php +++ b/System/Abstracts/BaseApplication.php @@ -86,6 +86,7 @@ abstract class BaseApplication extends Service /** * @return bool + * @throws ComponentException */ public function isRun(): bool { @@ -116,6 +117,8 @@ abstract class BaseApplication extends Service if ($this->taskNumber <= 0) { $this->taskNumber = 0; $this->state = 'SWOOLE_WORKER_IDLE'; + } else { + $this->state = 'SWOOLE_WORKER_BUSY'; } return $this->print_task_is_idle(__METHOD__); }