mirror of
https://github.com/esphome/esphome.git
synced 2025-09-14 01:02:19 +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
|
||||
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,
|
||||
|
Reference in New Issue
Block a user