Skip to content

Commit

Permalink
修复多进程消费时重复触发进程池stop的操作
Browse files Browse the repository at this point in the history
  • Loading branch information
Eno-CN authored Aug 2, 2024
1 parent 56327e3 commit aefa404
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ public function run(ITaskParam $param)
*/
public function stop(): void
{
$this->working = false;
if ($this->coPool)
if ($this->working)
{
$this->coPool->stop();
}
$this->working = false;
}

protected function task(QueueConfig $config): void
Expand Down

0 comments on commit aefa404

Please sign in to comment.