From 97572610c07955ffa8496cf1527023ad3f9e80ad Mon Sep 17 00:00:00 2001 From: YuLun Shih Date: Fri, 21 Apr 2017 16:31:44 +0800 Subject: [PATCH] Fix bridge->restart_t won't be reset Signed-off-by: YuLun Shih --- src/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loop.c b/src/loop.c index b7e8b752..6e9de59f 100644 --- a/src/loop.c +++ b/src/loop.c @@ -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 */