mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
change
This commit is contained in:
@@ -271,9 +271,7 @@ void Worker::terminate()
|
||||
|
||||
auto* impl = lifecycleHandle_;
|
||||
lifecycleHandle_ = nullptr;
|
||||
if (impl) {
|
||||
WebWorkerLifecycleHandle__requestTermination(impl);
|
||||
}
|
||||
WebWorkerLifecycleHandle__requestTermination(impl);
|
||||
}
|
||||
|
||||
// const char* Worker::activeDOMObjectName() const
|
||||
|
||||
@@ -449,10 +449,8 @@ fn unhandledError(this: *WebWorker, _: anyerror) void {
|
||||
this.flushLogs();
|
||||
}
|
||||
|
||||
pub export fn WebWorkerLifecycleHandle__requestTermination(handle: *WebWorkerLifecycleHandle) void {
|
||||
if (@intFromPtr(handle) == 0) return;
|
||||
|
||||
handle.requestTermination();
|
||||
pub export fn WebWorkerLifecycleHandle__requestTermination(handle: ?*WebWorkerLifecycleHandle) void {
|
||||
handle.?.requestTermination();
|
||||
}
|
||||
|
||||
fn spin(this: *WebWorker) void {
|
||||
|
||||
Reference in New Issue
Block a user