mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 09:32:34 +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:
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)
|
void mod_amqp_connection_destroy(mod_amqp_connection_t **conn)
|
||||||
{
|
{
|
||||||
if (conn && *conn) {
|
if (conn && *conn) {
|
||||||
|
mod_amqp_connection_close(*conn);
|
||||||
*conn = NULL;
|
*conn = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user