Skip to content

Commit

Permalink
reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
dgafka committed Aug 27, 2024
1 parent a156a3f commit 732ba9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/Amqp/src/AmqpInboundChannelAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 732ba9d

Please sign in to comment.