We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b6e302 commit 78baf59Copy full SHA for 78baf59
1 file changed
src/Protocols/Amqp.php
@@ -239,12 +239,18 @@ protected function reconnect(): bool
239
$this->channel->close();
240
}
241
242
+ if ($this->queues) {
243
+ $queues = array_keys($this->queues);
244
+ }
245
+
246
$this->connection->reconnect();
247
$this->channel = new AMQPChannel($this->connection);
248
- $this->clearSubscribes();
- foreach ($queues as $queue) {
- $this->subscribe($queue);
249
+ if (isset($queues)) {
250
+ $this->clearSubscribes();
251
+ foreach ($queues as $queue) {
252
+ $this->subscribe($queue);
253
254
255
256
return true;
0 commit comments