mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix mqtt heartbeat #710
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user