mirror of
https://github.com/esphome/esphome.git
synced 2025-10-05 11:23:47 +01:00
preen
This commit is contained in:
@@ -157,11 +157,11 @@ void APIServer::loop() {
|
||||
}
|
||||
}
|
||||
|
||||
// Process clients and remove disconnected ones in a single pass
|
||||
if (this->clients_.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Process clients and remove disconnected ones in a single pass
|
||||
// Check network connectivity once for all clients
|
||||
if (!network::is_connected()) {
|
||||
// Network is down - disconnect all clients
|
||||
|
Reference in New Issue
Block a user