Fix bridge not reconnectng if the first reconnection attempt fails.

Closes #2207. Thanks to Abilio Marques.
pull/2215/head
Roger Light 4 years ago
parent 9bb58a88fc
commit 880df7360d

@ -5,6 +5,8 @@ Broker:
- Fix possible crash having just upgraded from 1.6 if `per_listener_settings
true` is set, and a SIGHUP is sent to the broker before a client has
reconnected to the broker. Closes #2167.
- Fix bridge not reconnectng if the first reconnection attempt fails.
Closes #2207.
Clients:
- If sending mosquitto_sub output to a pipe, mosquitto_sub will now detect

@ -837,7 +837,7 @@ void bridge_check(void)
{
rc = bridge__connect(context);
context->bridge->restart_t = 0;
if(rc == MOSQ_ERR_SUCCESS){
if(rc == MOSQ_ERR_SUCCESS || rc == MOSQ_ERR_CONN_PENDING){
if(context->bridge->round_robin == false && context->bridge->cur_address != 0){
context->bridge->primary_retry = db.now_s + 5;
}

Loading…
Cancel
Save