mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-26 03:43:47 +08:00
Delete clients after socket close.
This commit is contained in:
@@ -238,6 +238,14 @@ int _mosquitto_socket_close(struct mosquitto *mosq)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef WITH_WEBSOCKETS
|
||||
if(!mosq->wsi){
|
||||
#endif
|
||||
HASH_ADD_KEYPTR(hh_for_free, db->contexts_for_free, mosq, sizeof(void *), mosq);
|
||||
#ifdef WITH_WEBSOCKETS
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WITH_BROKER
|
||||
if(mosq->listener){
|
||||
mosq->listener->client_count--;
|
||||
|
||||
Reference in New Issue
Block a user