[api] Fix crash loop on VoiceAssistantConfigurationRequest (#16757)
This commit is contained in:
1 parent
571a12ffe5
commit
559cfd1555
1 file changed
+3
@@ -1306,6 +1306,9 @@ void APIConnection::on_voice_assistant_announce_request(const VoiceAssistantAnno
|
|||||||
bool APIConnection::send_voice_assistant_get_configuration_response_(const VoiceAssistantConfigurationRequest &msg) {
|
bool APIConnection::send_voice_assistant_get_configuration_response_(const VoiceAssistantConfigurationRequest &msg) {
|
||||||
VoiceAssistantConfigurationResponse resp;
|
VoiceAssistantConfigurationResponse resp;
|
||||||
if (!this->check_voice_assistant_api_connection_()) {
|
if (!this->check_voice_assistant_api_connection_()) {
|
||||||
|
// send_message encodes synchronously, so this stack local outlives the encode
|
||||||
|
const std::vector<std::string> empty_wake_words;
|
||||||
|
resp.active_wake_words = &empty_wake_words;
|
||||||
return this->send_message(resp);
|
return this->send_message(resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user