summaryrefslogtreecommitdiff
path: root/cli/compiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/compiler.rs')
-rw-r--r--cli/compiler.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/compiler.rs b/cli/compiler.rs
index fa59e8a8c..ae4e3419f 100644
--- a/cli/compiler.rs
+++ b/cli/compiler.rs
@@ -111,6 +111,8 @@ fn lazy_start(parent_state: ThreadSafeState) -> ResourceId {
let mut runtime = C_RUNTIME.lock().unwrap();
runtime.spawn(lazy(move || {
+ tokio_util::abort_on_panic();
+
worker.then(move |result| -> Result<(), ()> {
// Close resource so the future created by
// handle_worker_message_stream exits