Skip to content

Commit

Permalink
Fix bridge->restart_t won't be reset
Browse files Browse the repository at this point in the history
Signed-off-by: YuLun Shih <[email protected]>
  • Loading branch information
imZack committed Apr 21, 2017
1 parent 4c43f4c commit 5aafe45
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 @@ -246,7 +246,7 @@ int mosquitto_main_loop(struct mosquitto_db *db, mosq_sock_t *listensock, int li
}else{
if((context->bridge->start_type == bst_lazy && context->bridge->lazy_reconnect)
|| (context->bridge->start_type == bst_automatic && now > context->bridge->restart_t)){

context->bridge->restart_t = 0;
#if defined(__GLIBC__) && defined(WITH_ADNS)
if(context->adns){
/* Waiting on DNS lookup */
Expand Down

0 comments on commit 5aafe45

Please sign in to comment.