]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7622 make sure to close the connections on destroy. Currently the connection is...
authorWilliam King <william.king@quentustech.com>
Tue, 9 Jun 2015 03:28:38 +0000 (20:28 -0700)
committerWilliam King <william.king@quentustech.com>
Tue, 9 Jun 2015 04:18:26 +0000 (21:18 -0700)
src/mod/event_handlers/mod_amqp/mod_amqp_connection.c

index 7aa30957658853113f188681c1cbd4544f315bb0..8e8be16389ce16ac0bbdd858178fc0ffd57480ef 100644 (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;
        }
 }