mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
see if we need to silence speech before we process the queue
This commit is contained in:
parent
a82bbd8140
commit
c9f871f687
1 changed files with 5 additions and 5 deletions
10
synth.c
10
synth.c
|
|
@ -268,17 +268,17 @@ void *espeak_thread(void *arg)
|
|||
while (should_run && !queue_peek() && !runner_must_stop)
|
||||
pthread_cond_wait(&runner_awake, &queue_guard);
|
||||
|
||||
while (should_run && queue_peek() && !runner_must_stop) {
|
||||
queue_process_entry(s);
|
||||
pthread_mutex_lock(&queue_guard);
|
||||
}
|
||||
|
||||
if (runner_must_stop) {
|
||||
queue_clear();
|
||||
stop_speech();
|
||||
runner_must_stop = 0;
|
||||
pthread_cond_signal(&stop_acknowledged);
|
||||
}
|
||||
|
||||
while (should_run && queue_peek() && !runner_must_stop) {
|
||||
queue_process_entry(s);
|
||||
pthread_mutex_lock(&queue_guard);
|
||||
}
|
||||
}
|
||||
pthread_cond_signal(&stop_acknowledged);
|
||||
pthread_mutex_unlock(&queue_guard);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue