about summary refs log tree commit diff
path: root/src/rt/rust_task_thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_task_thread.cpp')
-rw-r--r--src/rt/rust_task_thread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp
index 57164a97c0f..5e396badd62 100644
--- a/src/rt/rust_task_thread.cpp
+++ b/src/rt/rust_task_thread.cpp
@@ -247,7 +247,8 @@ rust_task_thread::start_main_loop() {
                  "all tasks are blocked, scheduler id %d yielding ...",
                  id);
             lock.wait();
-            reap_dead_tasks();
+            A(this, dead_tasks.length() == 0,
+              "Tasks should only die after running");
             DLOG(this, task,
                  "scheduler %d resuming ...", id);
             continue;