Skip to content

Commit 64b0b9e

Browse files
committed
Calling close on closed connection cause the connection to reconnect so it can close the connection
1 parent 70ad5a4 commit 64b0b9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PhpAmqpLib/Connection/AMQPLazyConnection.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ public function channel($channel_id = null)
3636
*/
3737
protected function getIO()
3838
{
39-
$this->connect();
39+
if (!$this->io) {
40+
$this->connect();
41+
}
4042

4143
return $this->io;
4244
}

0 commit comments

Comments
 (0)