|
|
@@ -20,7 +20,7 @@ channel::internal::internal(const cppamqp::connection& p_connection, channel_num |
|
|
|
|
|
|
|
|
channel::internal::~internal() |
|
|
channel::internal::~internal() |
|
|
{ |
|
|
{ |
|
|
if (handle <= 0) |
|
|
|
|
|
|
|
|
if (handle <= 0 || !static_cast<bool>(connection)) |
|
|
return; |
|
|
return; |
|
|
__impl::check_and_raise( |
|
|
__impl::check_and_raise( |
|
|
amqp_channel_close(connection.handle(), handle, AMQP_REPLY_SUCCESS), |
|
|
amqp_channel_close(connection.handle(), handle, AMQP_REPLY_SUCCESS), |
|
|
|