From 04a8a619b6912defd6eba058ba6d9a998f4bfe28 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 19 Dec 2018 15:54:21 +0100 Subject: [PATCH] Fix termination test in event processing e13b602 ("Avoid using pthread_cancel") introduced a bogus termination test, this fixes it. Fixes #572 --- src/libespeak-ng/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libespeak-ng/event.c b/src/libespeak-ng/event.c index 980a4250..135ec112 100644 --- a/src/libespeak-ng/event.c +++ b/src/libespeak-ng/event.c @@ -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);