Skip to content

Commit 14e4be7

Browse files
authored
修复多进程消费时重复触发进程池stop的操作 (#710)
1 parent 56327e3 commit 14e4be7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/queue/src/Partial/SwooleBaseQueueConsumerPartial.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ public function run(ITaskParam $param)
9090
*/
9191
public function stop(): void
9292
{
93-
$this->working = false;
94-
if ($this->coPool)
93+
if ($this->working)
9594
{
9695
$this->coPool->stop();
9796
}
97+
$this->working = false;
9898
}
9999

100100
protected function task(QueueConfig $config): void

0 commit comments

Comments
 (0)