mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-25 11:15:54 +08:00
Fix persistent clients being incorrectly expired on Raspberry Pis.
Closes #1272. Thanks to BowenMarmot and addendumE.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user