Call on_error if no api client connected that handles voice (#4709)

This commit is contained in:
Jesse Hills committed 2023-04-20 10:15:34 +12:00
1 parent 3be3267d06
commit 7207b9734f
3 files changed
+9 -4

No files matched your search

+4 -2
View File
@@ -428,10 +428,12 @@ void APIServer::on_shutdown() {
}
#ifdef USE_VOICE_ASSISTANT
void APIServer::start_voice_assistant() {
bool APIServer::start_voice_assistant() {
bool result = false;
for (auto &c : this->clients_) {
c->request_voice_assistant(true);
result |= c->request_voice_assistant(true);
}
return result;
}
void APIServer::stop_voice_assistant() {
for (auto &c : this->clients_) {