From 81cebc789aed07d2ac8b50585c2c458be9dd1122 Mon Sep 17 00:00:00 2001 From: Georgijs <48869301+gvilums@users.noreply.github.com> Date: Wed, 22 May 2024 14:04:50 -0700 Subject: [PATCH] Fix workers on windows taking a long time to exit (#11271) --- src/bun.js/web_worker.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bun.js/web_worker.zig b/src/bun.js/web_worker.zig index ffbbb19d4a..665ca7d428 100644 --- a/src/bun.js/web_worker.zig +++ b/src/bun.js/web_worker.zig @@ -190,6 +190,7 @@ pub const WebWorker = struct { fn deinit(this: *WebWorker) void { log("[{d}] deinit", .{this.execution_context_id}); this.parent_poll_ref.unrefConcurrently(this.parent); + this.parent.event_loop_handle.?.wakeup(); bun.default_allocator.free(this.specifier); bun.default_allocator.destroy(this); }