Browse Source

Fix race condition.

master
Christopher Brannon 8 years ago
parent
commit
2e9ec8e06a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/fifo.c

+ 1
- 1
src/libespeak-ng/fifo.c View File

@@ -314,8 +314,8 @@ static void *say_thread(void *p)
t_espeak_command *a_command = (t_espeak_command *)pop();

if (a_command == NULL) {
a_status = pthread_mutex_unlock(&my_mutex);
my_command_is_running = 0;
a_status = pthread_mutex_unlock(&my_mutex);
} else {
my_start_is_required = 0;


Loading…
Cancel
Save