Fix Wifi AP shutdown during client WiFi reconnect attempt

This commit is contained in:
Ulrich Meine
2026-04-23 23:06:05 +02:00
parent 3b2f73e22a
commit cfac5b0a05
+4
View File
@@ -143,6 +143,7 @@ void GwWifi::loop(){
delay(300);
if (!apActive) {
if (acquireMutex()){
esp_err_t stopErr=esp_wifi_stop();
releaseMutex();
@@ -167,6 +168,9 @@ void GwWifi::loop(){
else{
LOG_DEBUG(GwLog::ERROR,"GwWifi: mutex timeout in loop (start)");
}
} else {
connectInternal();
}
}
}
else{