mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-19 14:24:18 +02:00
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:
parent
31ad5f04ca
commit
ccb8cea91e
1 changed files with 1 additions and 1 deletions
2
synth.c
2
synth.c
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue