FS-7622 make sure to close the connections on destroy. Currently the connection is malloc'd from the module pool, so there is nothing to destroy.
This commit is contained in:
parent
251c4ab439
commit
6484c6fc0a
|
@ -234,6 +234,7 @@ switch_status_t mod_amqp_connection_create(mod_amqp_connection_t **conn, switch_
|
|||
void mod_amqp_connection_destroy(mod_amqp_connection_t **conn)
|
||||
{
|
||||
if (conn && *conn) {
|
||||
mod_amqp_connection_close(*conn);
|
||||
*conn = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue