Delete clients after socket close.

This commit is contained in:
Roger A. Light 2014-07-02 20:49:06 +01:00
parent 5c7512b8ba
commit a831281b3d

View File

@ -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--;