mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-23 16:43:49 +08:00
Don't trigger DISCONNECT events for clients that didn't complete connection.
This commit is contained in:
@@ -141,6 +141,8 @@ static void plugin__handle_disconnect_single(struct mosquitto__security_options
|
||||
struct mosquitto_evt_disconnect event_data;
|
||||
struct mosquitto__callback *cb_base;
|
||||
|
||||
if(context->id == NULL) return;
|
||||
|
||||
memset(&event_data, 0, sizeof(event_data));
|
||||
event_data.client = context;
|
||||
event_data.reason = reason;
|
||||
|
||||
Reference in New Issue
Block a user