Skip to content

Commit 3882342

Browse files
committed
修复队列消费者协程设为0,停止服务时错误 #I4BVQ5
1 parent 81365ea commit 3882342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Partial/SwooleBaseQueueConsumerPartial.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ trait SwooleBaseQueueConsumerPartial
2525
/**
2626
* 协程工作池.
2727
*/
28-
private ?CoPool $coPool;
28+
private ?CoPool $coPool = null;
2929

3030
/**
3131
* 开始消费循环.

0 commit comments

Comments
 (0)