[SYS} Fix disconnection detection (#2031)

Fix #2029
Introduced by #2020

Co-authored-by: Florian <1technophile@users.noreply.github.com>
This commit is contained in:
FlorianandFlorian authored and GitHub committed 2024-08-27 13:23:04 -05:00
1 parent 18461b9ef8
commit 3d6d9baeaf
1 file changed
+1 -1
+1 -1
View File
@@ -1079,7 +1079,7 @@ void setupMQTT() {
};
mqtt->connection_failure_callback = [] {
if (WiFi.status() != WL_CONNECTED || ethConnected == false || SYSConfig.offline) {
if ((WiFi.status() != WL_CONNECTED && ethConnected == false) || SYSConfig.offline) {
// No network connection or offline, ignore this failure
return;
}