Fix bridge->restart_t won't be reset
Signed-off-by: YuLun Shih <shih@yulun.me>
This commit is contained in:
parent
a93a0c9bb1
commit
97572610c0
@ -246,7 +246,7 @@ int mosquitto_main_loop(struct mosquitto_db *db, mosq_sock_t *listensock, int li
|
|||||||
}else{
|
}else{
|
||||||
if((context->bridge->start_type == bst_lazy && context->bridge->lazy_reconnect)
|
if((context->bridge->start_type == bst_lazy && context->bridge->lazy_reconnect)
|
||||||
|| (context->bridge->start_type == bst_automatic && now > context->bridge->restart_t)){
|
|| (context->bridge->start_type == bst_automatic && now > context->bridge->restart_t)){
|
||||||
|
context->bridge->restart_t = 0;
|
||||||
#if defined(__GLIBC__) && defined(WITH_ADNS)
|
#if defined(__GLIBC__) && defined(WITH_ADNS)
|
||||||
if(context->adns){
|
if(context->adns){
|
||||||
/* Waiting on DNS lookup */
|
/* Waiting on DNS lookup */
|
||||||
|
Loading…
Reference in New Issue
Block a user