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); }