Skip to content

Commit 7185507

Browse files
committed
Code robustness
1 parent d49ead3 commit 7185507

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
@@ -61,7 +61,7 @@ public function __destruct()
6161
$this->ch->close();
6262
}
6363

64-
if ($this->conn->isConnected()) {
64+
if ($this->conn && $this->conn->isConnected()) {
6565
$this->conn->close();
6666
}
6767
}

0 commit comments

Comments
 (0)