[SYS] Fix Ethernet network check on MQTT failure (#2013)

Missing the check

Co-authored-by: Florian <1technophile@users.noreply.github.com>
This commit is contained in:
FlorianandFlorian authored and GitHub committed 2024-08-16 19:56:41 -05:00
1 parent f655f4fda0
commit a2fa86eef6
1 file changed
+1 -1
+1 -1
View File
@@ -1044,7 +1044,7 @@ void setupMQTT() {
};
mqtt->connection_failure_callback = [] {
if (WiFi.status() != WL_CONNECTED) {
if (WiFi.status() != WL_CONNECTED && ethConnected == false) {
// No WiFi connection, MQTT couldn't connect, ignore this failure
return;
}