From 387bcef77e4f49ef0a943b46440d49f9665c97bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 1 Mar 2021 18:18:48 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Abstracts/BaseApplication.php b/System/Abstracts/BaseApplication.php index dbd44620..17645894 100644 --- a/System/Abstracts/BaseApplication.php +++ b/System/Abstracts/BaseApplication.php @@ -91,7 +91,7 @@ abstract class BaseApplication extends Service public function isRun(): bool { $this->print_task_is_idle(__METHOD__); - return $this->state == SWOOLE_WORKER_BUSY; + return $this->taskNumber > 0; }