summaryrefslogtreecommitdiff
path: root/runtime/web_worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r--runtime/web_worker.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs
index e5adf4cc6..5b8c1944a 100644
--- a/runtime/web_worker.rs
+++ b/runtime/web_worker.rs
@@ -182,6 +182,7 @@ impl WebWorkerInternalHandle {
/// This function will set terminated to true, terminate the isolate and close the message channel
pub fn terminate(&mut self) {
self.cancel.cancel();
+ self.terminate_waker.wake();
// This function can be called multiple times by whomever holds
// the handle. However only a single "termination" should occur so