removed a nested lock/unlock

This commit is contained in:
William Hubbs 2009-06-25 14:36:25 -05:00
commit 938e10b66a

View file

@ -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);