mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-28 16:14:35 +08:00
If the socket pair is still opened on reconnect, close it before creating it again (just like the state variables). Otherwise, these sockets are leaked on multiple mosquitto_connect() calls. Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>