mochi-mqtt / server

The fully compliant, embeddable high-performance Go MQTT v5 server for IoT, smarthome, and pubsub
MIT License
1.29k stars 222 forks source link

fixed badger crashed on server Close #298 #300

Closed werbenhu closed 1 year ago

werbenhu commented 1 year ago

fixed badger crashed on server Close #298

werbenhu commented 1 year ago

@thedevop how about this?

thedevop commented 1 year ago

for use cases that doesn't rely on OnDisconnect, this works (may not even hit the bug). However, it may cause issue for use cases where that is relied upon.

werbenhu commented 1 year ago

@thedevop You're right; I will close this PR.