Skip to content

Commit

Permalink
fix bug where bridge doesn't honor restart_timeout setting
Browse files Browse the repository at this point in the history
Signed-off-by: Abilio Marques <[email protected]>
  • Loading branch information
abiliojr authored and ralight committed Nov 6, 2018
1 parent 80f3bc4 commit a4a5236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,8 @@ int mosquitto_main_loop(struct mosquitto_db *db, mosq_sock_t *listensock, int li
#else
{
rc = bridge__connect(db, context);
context->bridge->restart_t = 0;
if(rc == MOSQ_ERR_SUCCESS){
context->bridge->restart_t = 0;
if(context->bridge->round_robin == false && context->bridge->cur_address != 0){
context->bridge->primary_retry = now + 5;
}
Expand Down

0 comments on commit a4a5236

Please sign in to comment.