Browse Source

Fix termination test in event processing

e13b602 ("Avoid using pthread_cancel") introduced a bogus termination test,
this fixes it.

Fixes #572
master
Samuel Thibault 6 years ago
parent
commit
04a8a619b6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/event.c

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

@@ -254,7 +254,7 @@ static void *polling_thread(void *p)
{
(void)p; // unused

while (my_terminate_is_required) {
while (!my_terminate_is_required) {
bool a_stop_is_required = false;

(void)pthread_mutex_lock(&my_mutex);

Loading…
Cancel
Save