mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:24:29 +02:00
Fix MOSQ_EVT_DISCONNECT being called before MOSQ_EVT_ACL_CHECK
This occurs for the will of that client. Closes #3487. Thanks to ChrisBFX.
This commit is contained in:
parent
5b74cce8a4
commit
5f2a45d96a
|
|
@ -1,3 +1,11 @@
|
|||
2.1.3 - 2026-02-xx
|
||||
==================
|
||||
|
||||
Broker:
|
||||
- Fix MOSQ_EVT_DISCONNECT being called before MOSQ_EVT_ACL_CHECK for the will
|
||||
of that client. Closes #3487.
|
||||
|
||||
|
||||
2.1.2 - 2026-02-09
|
||||
==================
|
||||
|
||||
|
|
|
|||
|
|
@ -269,13 +269,14 @@ void context__disconnect(struct mosquitto *context, int reason)
|
|||
}
|
||||
}
|
||||
|
||||
context__send_will(context);
|
||||
|
||||
if(context->session_expiry_interval == MQTT_SESSION_EXPIRY_IMMEDIATE){
|
||||
plugin__handle_disconnect(context, reason);
|
||||
}else{
|
||||
plugin__handle_client_offline(context, reason);
|
||||
}
|
||||
|
||||
context__send_will(context);
|
||||
net__socket_close(context);
|
||||
#ifdef WITH_BRIDGE
|
||||
if(context->bridge == NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue