[api] Inline APIServer::is_connected() for common no-arg path (#14574)
This commit is contained in:
1 parent
77f2c371b2
commit
e7b8ec18f1
2 files changed
+7
-7
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user