]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
If we lost connection and can't reconnect, make sure to set active connection to...
authorWilliam King <william.king@quentustech.com>
Mon, 20 Apr 2015 01:42:55 +0000 (18:42 -0700)
committerWilliam King <william.king@quentustech.com>
Mon, 20 Apr 2015 01:43:03 +0000 (18:43 -0700)
src/mod/event_handlers/mod_amqp/mod_amqp_connection.c

index cd0eac98ac8fafc8b7ea9b4318e0a564a684ffea..78dc474dcf287f141f9f9019ec3f14e0f7c58162 100644 (file)
@@ -128,6 +128,7 @@ switch_status_t mod_amqp_connection_open(mod_amqp_connection_t *connections, mod
 
        if (!connection_attempt) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile[%s] could not connect to any AMQP brokers\n", profile_name);
+               *active = NULL;
                return SWITCH_STATUS_GENERR;
        }