1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-14 01:02:19 +01:00
This commit is contained in:
J. Nick Koston
2025-06-23 11:36:54 +02:00
parent 6a22ea1c7d
commit 93245a24b5

View File

@@ -158,7 +158,10 @@ void APIServer::loop() {
}
// Process clients and remove disconnected ones in a single pass
if (!this->clients_.empty()) {
if (this->clients_.empty()) {
return;
}
// Check network connectivity once for all clients
if (!network::is_connected()) {
// Network is down - disconnect all clients
@@ -197,7 +200,6 @@ void APIServer::loop() {
}
}
}
}
void APIServer::dump_config() {
ESP_LOGCONFIG(TAG,