Try to fix alive problem

This commit is contained in:
hsaturn
2022-12-28 23:02:26 +01:00
parent efa94cc4a4
commit 9e578471f1

View File

@@ -88,6 +88,7 @@ void MqttClient::close(bool bSendDisconnect)
void MqttClient::connect(MqttBroker* local) void MqttClient::connect(MqttBroker* local)
{ {
debug("MqttClient::connect_local"); debug("MqttClient::connect_local");
alive = 0;
close(); close();
local_broker = local; local_broker = local;
clientAlive(); clientAlive();