From 938e10b66a14237cdff734ae5b97525f9c4ae9cc Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 25 Jun 2009 14:36:25 -0500 Subject: [PATCH] removed a nested lock/unlock --- synth.c | 2 -- 1 file changed, 2 deletions(-) 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);