[api] Inline APIServer::is_connected() for common no-arg path (#14574)

This commit is contained in:
J. Nick Koston
2026-03-07 07:26:50 -10:00
committed by GitHub
parent 77f2c371b2
commit e7b8ec18f1
2 changed files with 7 additions and 7 deletions
+1 -5
View File
@@ -582,11 +582,7 @@ void APIServer::request_time() {
}
#endif
bool APIServer::is_connected(bool state_subscription_only) const {
if (!state_subscription_only) {
return !this->clients_.empty();
}
bool APIServer::is_connected_with_state_subscription() const {
for (const auto &client : this->clients_) {
if (client->flags_.state_subscription) {
return true;