diff options
| -rw-r--r-- | apps/voice_thread.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c index 4027fd0..7bf52d4 100644 --- a/apps/voice_thread.c +++ b/apps/voice_thread.c @@ -173,6 +173,10 @@ void voice_stop(void) /* Unqueue all future clips */ talk_force_shutup(); + /* Wait for any final queue_post to be processed */ + LOGFQUEUE("mp3 >| voice Q_VOICE_NULL"); + queue_send(&voice_queue, Q_VOICE_NULL, 0); + mutex_unlock(&voice_mutex); } /* voice_stop */ |