mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
Fix race condition.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user