From 82f56681f2e5c4988ef9cb81eb8699dfbd47c53f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Egyed?= Date: Thu, 7 Dec 2017 12:49:18 +0100 Subject: [PATCH] Fix signal handling for the batch consumer --- RabbitMq/BatchConsumer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RabbitMq/BatchConsumer.php b/RabbitMq/BatchConsumer.php index b32d8fae..ce48ad04 100644 --- a/RabbitMq/BatchConsumer.php +++ b/RabbitMq/BatchConsumer.php @@ -292,7 +292,7 @@ public function stopConsuming() $this->batchConsume(); } - $this->getChannel()->basic_cancel($this->getConsumerTag()); + $this->getChannel()->basic_cancel($this->getConsumerTag(), false, true); } /**