Fix TLS Websockets clients not receiving messages.

This can occurs after one client takes over a previous connection.

Closes #1489. Thanks to Bas Verhoeven.
This commit is contained in:
Roger A. Light 2019-11-06 22:25:33 +00:00
parent c052950639
commit 05171b266d
2 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,8 @@ Broker:
restored from persistence. Closes #1464.
- Fix messages with an expiry interval being sent without an expiry interval
property just before they were expired. Closes #1464.
- Fix TLS Websockets clients not receiving messages after taking over a
previous connection. Closes #1489.
Client library:
- Fix publish properties not being passed to on_message_v5 callback for QoS 2

View File

@ -160,6 +160,9 @@ int connect__on_authorised(struct mosquitto_db *db, struct mosquitto *context, v
}
}
if(context->clean_start == true){
sub__clean_session(db, found_context);
}
session_expiry__remove(found_context);
will_delay__remove(found_context);
will__clear(found_context);