Skip to content

Commit 9a52d55

Browse files
committed
Merge pull request #348 from sterrien/patch-1
Force fetching new channel when channel_id is null
2 parents cfbb522 + 254125a commit 9a52d55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RabbitMq/BaseAmqp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function reconnect()
8080
*/
8181
public function getChannel()
8282
{
83-
if (empty($this->ch)) {
83+
if (empty($this->ch) || null === $this->ch->getChannelId()) {
8484
$this->ch = $this->conn->channel();
8585
}
8686

0 commit comments

Comments
 (0)