g_audio_manager.stop_streaming_current_utterance_data();
join_engine_data_thread();
+ bool streaming_by_manager = true;
/* What if the user pressed voice key but then again immediately releases? */
if (g_voice_key_pressed) {
g_audio_manager.start_streaming_current_utterance_data();
if(g_last_wakeup_event_info.wakeup_time_valid) {
g_audio_manager.start_streaming_current_utterance_data(true, g_last_wakeup_event_info.wakeup_end_time);
} else {
+ streaming_by_manager = false;
start_engine_data_thread();
}
}
if (g_streaming_duration_timer) {
ecore_timer_del(g_streaming_duration_timer);
}
- g_streaming_duration_timer = ecore_timer_add(g_wakeup_settings.get_streaming_duration_max(),
- streaming_duration_expired, nullptr);
+ if (streaming_by_manager) {
+ g_streaming_duration_timer = ecore_timer_add(g_wakeup_settings.get_streaming_duration_max(),
+ streaming_duration_expired, nullptr);
+ }
ecore_thread_main_loop_end();
MWR_LOGD("[END]");