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

This commit is contained in:
J. Nick Koston authored and GitHub committed 2026-03-07 07:26:50 -10:00
1 parent 77f2c371b2
commit e7b8ec18f1
2 files changed
+7 -7

No files matched your search

+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;