This commit is contained in:
2021-03-01 18:18:48 +08:00
parent af5eefd617
commit 387bcef77e
+1 -1
View File
@@ -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;
}