mirror of
https://github.com/esphome/esphome.git
synced 2025-10-05 19:33: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()) {
|
if (this->clients_.empty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Process clients and remove disconnected ones in a single pass
|
||||||
// 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
|
||||||
|
Reference in New Issue
Block a user