aciidgh / SwiftMQTT

MQTT Client in pure swift ❤️
MIT License
270 stars 71 forks source link

Crash in deinit after network disconnect #56

Open HeikoMueller opened 3 years ago

HeikoMueller commented 3 years ago

In case of network loss, I encounter a crash in the deinit function on line 73:

Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value

currentRunLoop seems to be already nil at the time the function is called.