mirror of
https://github.com/esphome/esphome.git
synced 2025-09-14 17:22:20 +01:00
preen
This commit is contained in:
@@ -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() {
|
||||||
|
Reference in New Issue
Block a user