diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index 243c60a29c..9e8fc8097a 100644 --- a/runtime/web_worker.rs +++ b/runtime/web_worker.rs @@ -698,7 +698,7 @@ impl WebWorker { event_loop_result = self.js_runtime.run_event_loop(false) => { event_loop_result?; - + receiver.await } } @@ -730,7 +730,7 @@ impl WebWorker { return Ok(()); } event_loop_result?; - + receiver.await } } diff --git a/runtime/worker.rs b/runtime/worker.rs index 1a1e07a4dd..542a1a64bf 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -553,7 +553,7 @@ impl MainWorker { event_loop_result = self.run_event_loop(false) => { event_loop_result?; - + receiver.await } }