From f3ad13c2d452bfd09b22ad3cb281991ea35ab53f Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 18 May 2025 14:02:32 -0500 Subject: [PATCH] Always cancel thread on windows. --- src/core/ev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ev.c b/src/core/ev.c index 5dec7db5..4beb49da 100644 --- a/src/core/ev.c +++ b/src/core/ev.c @@ -620,7 +620,7 @@ static void janet_timeout_stop(int sig_num) { static void handle_timeout_worker(JanetTimeout to, int cancel) { if (!to.has_worker) return; #ifdef JANET_WINDOWS - if (cancel) QueueUserAPC(janet_timeout_stop, to.worker, 0); + QueueUserAPC(janet_timeout_stop, to.worker, 0); WaitForSingleObject(to.worker, INFINITE); CloseHandle(to.worker); #else