eclipse-paho / paho.mqtt.golang

Other
2.77k stars 534 forks source link

fix: issue 675:goroutine leak when connectionUp(true) return error #676

Closed kiqi007 closed 5 months ago

kiqi007 commented 5 months ago

bug: https://github.com/eclipse/paho.mqtt.golang/issues/675

fix: Skip the check and quick return for Disconnect when the connection is being established. Treat this scenario as if the Disconnect occurred after connectionUp(true) completed.