mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Update web_worker.zig
This commit is contained in:
@@ -558,6 +558,11 @@ pub fn setRefInternal(this: *WebWorker, value: bool) void {
|
||||
pub fn exit(this: *WebWorker) void {
|
||||
this.exit_called = true;
|
||||
this.notifyNeedTermination();
|
||||
if (this.vm) |vm| {
|
||||
if (!vm.isShuttingDown()) {
|
||||
vm.jsc_vm.notifyNeedTermination();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Request a terminate from any thread.
|
||||
|
||||
Reference in New Issue
Block a user