Skip to content

Fix: MQTT::connection() always returns established connection (or throws exception)

Compare
Choose a tag to compare
@Namoshek Namoshek released this 08 Jan 13:27
· 16 commits to master since this release
7dfaac0

In #18 @stijn1989 described an issue where manually closing a connection would make MQTT::connection() return an already closed connection on subsequent calls. To work around this issue, we reinitialize closed connections before returning them in MQTT::connect() (#19).