This commit is contained in:
2021-02-26 20:04:16 +08:00
parent 893b0abb58
commit 8f9b75d19f
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ abstract class BaseApplication extends Service
public function increment()
{
$this->taskNumber += 1;
if ($this->taskNumber <= 1) {
if ($this->taskNumber < 1) {
$this->taskNumber = 0;
$this->state = 'SWOOLE_WORKER_IDLE';
} else {