Delete clients after socket close.
This commit is contained in:
parent
5c7512b8ba
commit
a831281b3d
@ -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--;
|
||||
|
Loading…
Reference in New Issue
Block a user