Skip to content

Commit c9d7018

Browse files
committed
Autoclose channel on destruct
1 parent 58de4db commit c9d7018

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PhpAmqpLib/Channel/AMQPChannel.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ public function __construct($connection, $channel_id = null, $auto_decode = true
106106

107107
public function __destruct()
108108
{
109-
//TODO:???if($this->connection)
110-
// $this->close("destroying channel");
109+
$this->close();
111110
}
112111

113112

0 commit comments

Comments
 (0)