1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-03-03 09:21:29 +00:00

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 5145746438
commit 7db5b178f6

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