toitware / mqtt

MIT License
4 stars 4 forks source link

Don't try to reuse a connection when reconnecting #60

Closed floitsch closed 2 years ago

floitsch commented 2 years ago

If we get into a reconnect state, don't try to reuse the existing connection. There is usually a reason we try to reconnect and it's safer to just let the transport reestablish a fresh connection.

floitsch commented 2 years ago

Apparently did an auto-merge. Doing a follow-up PR.

floitsch commented 2 years ago

https://github.com/toitware/mqtt/pull/61