Check expiration every hour regardless of the duration.

pull/211/merge
Roger A. Light 11 years ago
parent 76724c790e
commit 1fdc4ceee6

@ -84,7 +84,7 @@ int mosquitto_main_loop(struct mosquitto_db *db, int *listensock, int listensock
#endif #endif
if(db->config->persistent_client_expiration > 0){ if(db->config->persistent_client_expiration > 0){
expiration_check_time = time(NULL) + db->config->persistent_client_expiration; expiration_check_time = time(NULL) + 3600;
} }
while(run){ while(run){
@ -250,7 +250,7 @@ int mosquitto_main_loop(struct mosquitto_db *db, int *listensock, int listensock
} }
} }
} }
expiration_check_time = time(NULL) + db->config->persistent_client_expiration; expiration_check_time = time(NULL) + 3600;
} }
mqtt3_db_message_timeout_check(db, db->config->retry_interval); mqtt3_db_message_timeout_check(db, db->config->retry_interval);

Loading…
Cancel
Save