Delete clients after socket close.

pull/211/merge
Roger A. Light 11 years ago
parent 5c7512b8ba
commit a831281b3d

@ -238,6 +238,14 @@ int _mosquitto_socket_close(struct mosquitto *mosq)
#endif #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 #ifdef WITH_BROKER
if(mosq->listener){ if(mosq->listener){
mosq->listener->client_count--; mosq->listener->client_count--;

Loading…
Cancel
Save