Skip to content

Commit

Permalink
修复多进程消费时重复触发进程池stop的操作 (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eno-CN authored Aug 10, 2024
1 parent 56327e3 commit 14e4be7
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 14e4be7

Please sign in to comment.