fix mqtt heartbeat #710

This commit is contained in:
proddy
2021-02-22 12:41:12 +01:00
parent 40e22038f7
commit 0dc0671690
3 changed files with 5 additions and 10 deletions

View File

@@ -444,7 +444,7 @@ bool Mqtt::get_publish_onchange(uint8_t device_type) {
// MQTT onConnect - when an MQTT connect is established
// send out some inital MQTT messages
void Mqtt::on_connect() {
if (connecting_) {
if (connecting_) { // prevent duplicating connections
return;
}