1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-14 17:22:20 +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 // 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 // Check network connectivity once for all clients
if (!network::is_connected()) { if (!network::is_connected()) {
// Network is down - disconnect all clients // Network is down - disconnect all clients
@@ -196,7 +199,6 @@ void APIServer::loop() {
client_index++; // Move to next client client_index++; // Move to next client
} }
} }
}
} }
void APIServer::dump_config() { void APIServer::dump_config() {