emqx / CocoaMQTT

MQTT 5.0 client library for iOS and macOS written in Swift
https://www.emqx.com/en
Other
1.57k stars 411 forks source link

fix: auto reconnection not working #509

Closed sadarm closed 1 year ago

sadarm commented 1 year ago

Fixed auto reconnection not working when a socket disconnected.

This issue is a side effect of the PR below. https://github.com/emqx/CocoaMQTT/pull/466

Fixed incorrect is_internal_disconnected guard condition and removed code that initialized is_internal_disconnected unnecessarily.

gchulsong commented 1 year ago

Our mobile app service, used by millions of users, also suffers from this error. I hope this PR will be reviewed and merged quickly.

michalsrutek commented 1 year ago

@leeway1208 can we get a release, please? 🤞