This commit is contained in:
J. Nick Koston
2025-06-23 11:37:27 +02:00
parent 93245a24b5
commit 76a59759b2

View File

@@ -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