mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
If we lost connection and can't reconnect, make sure to set active connection to NULL
This commit is contained in:
parent
4f134467e3
commit
c620ee32c7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user