[SYS} Fix disconnection detection (#2031)
Fix #2029 Introduced by #2020 Co-authored-by: Florian <1technophile@users.noreply.github.com>
This commit is contained in:
1 parent
18461b9ef8
commit
3d6d9baeaf
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user