terrorsl / sMQTTBroker

Simple MQTT broker
MIT License
70 stars 19 forks source link

Client remove #5

Closed conaito closed 3 years ago

conaito commented 3 years ago

In advanced example is a event onRemove which never will fire (if client disconnected as example). Can you double check if disconnected clients really free the memory?

terrorsl commented 3 years ago

you are right when deleting a client this function is not called. The client is removed correctly and frees the occupied memory.

conaito commented 3 years ago

so may you can fix that to complete ?

terrorsl commented 3 years ago

Yes