Skip to content

Commit 20c2f4a

Browse files
tommygnrskafandri
authored andcommitted
Fix for consumer with empty queue not handling SIGTERM/SIGINT (#430)
This applies the change made in d3fef7f to the MultipleConsumer Refs #352 #178 #260
1 parent 3b3fdb7 commit 20c2f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RabbitMq/MultipleConsumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function processQueueMessage($queueName, AMQPMessage $msg)
102102
public function stopConsuming()
103103
{
104104
foreach ($this->queues as $name => $options) {
105-
$this->getChannel()->basic_cancel($this->getQueueConsumerTag($name));
105+
$this->getChannel()->basic_cancel($this->getQueueConsumerTag($name), false, true);
106106
}
107107
}
108108

0 commit comments

Comments
 (0)