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:
William King 2015-06-08 20:28:38 -07:00
parent 251c4ab439
commit 6484c6fc0a
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}