stop speech before clearing the queue

Thanks to Kirk Reiser for pointing out that this makes the cancel
response faster.
This commit is contained in:
William Hubbs 2009-06-29 18:12:04 -05:00
commit ccb8cea91e

View file

@ -267,8 +267,8 @@ void *espeak_thread(void *arg)
pthread_cond_wait(&runner_awake, &queue_guard);
if (runner_must_stop) {
synth_queue_clear();
stop_speech();
synth_queue_clear();
runner_must_stop = 0;
pthread_cond_signal(&stop_acknowledged);
}