Check expiration every hour regardless of the duration.

This commit is contained in:
Roger A. Light 2014-08-19 01:11:22 +01:00
parent 76724c790e
commit 1fdc4ceee6

View File

@ -84,7 +84,7 @@ int mosquitto_main_loop(struct mosquitto_db *db, int *listensock, int listensock
#endif
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){
@ -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);