Fix persistent clients being incorrectly expired on Raspberry Pis.

Closes #1272. Thanks to BowenMarmot and addendumE.
This commit is contained in:
Roger A. Light 2019-06-25 17:01:41 +01:00
parent a5620d9d55
commit d17d7c9229
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,10 @@
1.6.4 - 2019xxxx
================
Broker:
- Fix persistent clients being incorrectly expired on Raspberry Pis.
Closes #1272.
1.6.3 - 20190618
================

View File

@ -94,7 +94,9 @@ void session_expiry__check(struct mosquitto_db *db, time_t now)
last_check = now;
DL_FOREACH_SAFE(expiry_list, item, tmp){
if(item->context->session_expiry_time < now){
if(item->context->session_expiry_interval != UINT32_MAX
&& item->context->session_expiry_time < now){
context = item->context;
session_expiry__remove(context);