mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
removed a nested lock/unlock
This commit is contained in:
parent
975765289b
commit
938e10b66a
1 changed files with 0 additions and 2 deletions
2
synth.c
2
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue