From 9e578471f1aa4875a294cacb71fd37a7b533639d Mon Sep 17 00:00:00 2001 From: hsaturn Date: Wed, 28 Dec 2022 23:02:26 +0100 Subject: [PATCH] Try to fix alive problem --- src/TinyMqtt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TinyMqtt.cpp b/src/TinyMqtt.cpp index ac4138e..517cca1 100644 --- a/src/TinyMqtt.cpp +++ b/src/TinyMqtt.cpp @@ -88,6 +88,7 @@ void MqttClient::close(bool bSendDisconnect) void MqttClient::connect(MqttBroker* local) { debug("MqttClient::connect_local"); + alive = 0; close(); local_broker = local; clientAlive();