diff --git a/synth.c b/synth.c index 9fbdf07..2ec8f1e 100644 --- a/synth.c +++ b/synth.c @@ -265,12 +265,10 @@ void *espeak_thread(void *arg) } if (runner_must_stop) { - pthread_mutex_lock(&queue_guard); queue_clear(); stop_speech(); runner_must_stop = 0; pthread_cond_signal(&stop_acknowledged); - pthread_mutex_unlock(&queue_guard); } } pthread_mutex_unlock(&queue_guard);