mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-03 17:30:37 +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
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user