Fix workers on windows taking a long time to exit (#11271)

This commit is contained in:
Georgijs
2024-05-22 14:04:50 -07:00
committed by GitHub
parent ce8474b2a1
commit 81cebc789a

View File

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