mqtt: do not try to send packets when it disconnected (#8658)
This commit is contained in:
committed by
Ben Meadors
co-authored by
Ben Meadors
parent
b202559d37
commit
d39d1917ad
+1
-1
@@ -692,7 +692,7 @@ void MQTT::publishNodeInfo()
|
||||
}
|
||||
void MQTT::publishQueuedMessages()
|
||||
{
|
||||
if (mqttQueue.isEmpty())
|
||||
if (mqttQueue.isEmpty() || !isConnected)
|
||||
return;
|
||||
|
||||
if (!moduleConfig.mqtt.proxy_to_client_enabled && !isConnected)
|
||||
|
||||
Reference in New Issue
Block a user