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