Commit 00c972c 1 parent 024b136 commit 00c972c Copy full SHA for 00c972c
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2054,14 +2054,14 @@ void _mqttConnect() {
2054
2054
_mqtt_reconnect_delay =
2055
2055
mqtt::reconnect::next (_mqtt_reconnect_delay);
2056
2056
2057
- // Attempt to perform MDNS discovery when configuration was only partially successful
2057
+ // Attempt MDNS discovery when configuration was only partially successful
2058
2058
#if MDNS_SERVER_SUPPORT
2059
- if (_mqtt_error == ErrMDNS) {
2059
+ if (_mqtt_error && _mqtt_error == ErrMDNS) {
2060
2060
_mqttMdnsDiscovery ();
2061
2061
}
2062
2062
#endif
2063
2063
2064
- // Do not connect if configuration was not clean
2064
+ // Do not connect when configuration was not successful
2065
2065
if (_mqtt_error) return ;
2066
2066
2067
2067
_mqtt_state = AsyncClientState::Connecting;
You can’t perform that action at this time.
0 commit comments