Fix persistent clients being incorrectly expired on Raspberry Pis.
Closes #1272. Thanks to BowenMarmot and addendumE.
This commit is contained in:
parent
a5620d9d55
commit
d17d7c9229
@ -1,3 +1,10 @@
|
||||
1.6.4 - 2019xxxx
|
||||
================
|
||||
|
||||
Broker:
|
||||
- Fix persistent clients being incorrectly expired on Raspberry Pis.
|
||||
Closes #1272.
|
||||
|
||||
1.6.3 - 20190618
|
||||
================
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user