This commit is contained in:
2021-02-26 20:07:36 +08:00
parent 8f9b75d19f
commit a4d8aebd76
4 changed files with 13 additions and 2 deletions
+7
View File
@@ -93,6 +93,13 @@ abstract class BaseApplication extends Service
}
public function stateInit()
{
$this->taskNumber = 0;
$this->state = 'SWOOLE_WORKER_IDLE';
}
public function decrement()
{
$this->taskNumber -= 1;