diff --git a/packages/Amqp/src/AmqpInboundChannelAdapter.php b/packages/Amqp/src/AmqpInboundChannelAdapter.php index 9b46b0d8e..44ffa233a 100644 --- a/packages/Amqp/src/AmqpInboundChannelAdapter.php +++ b/packages/Amqp/src/AmqpInboundChannelAdapter.php @@ -104,6 +104,7 @@ public function receiveWithTimeout(int $timeout = 0): ?Message return $this->queueChannel->receive(); } catch (AMQPConnectionException|\AMQPChannelException $exception) { + $this->connectionFactory->reconnect(); throw new ConnectionException('Failed to connect to AMQP broker', 0, $exception); } }