From: William King Date: Mon, 20 Apr 2015 01:42:55 +0000 (-0700) Subject: If we lost connection and can't reconnect, make sure to set active connection to... X-Git-Tag: v1.4.19~6^2~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c620ee32c7887a73bcaeb690183cd597205f3408;p=thirdparty%2Ffreeswitch.git If we lost connection and can't reconnect, make sure to set active connection to NULL --- diff --git a/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c b/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c index cd0eac98ac..78dc474dcf 100644 --- a/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c +++ b/src/mod/event_handlers/mod_amqp/mod_amqp_connection.c @@ -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; }