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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp
index 4830e1254d5..41242fee9d3 100644
--- a/src/rt/rust_task_thread.cpp
+++ b/src/rt/rust_task_thread.cpp
@@ -149,7 +149,7 @@ rust_task_thread::reap_dead_tasks() {
 void
 rust_task_thread::release_task(rust_task *task) {
     // Nobody should have a ref to the task at this point
-    I(this, task->ref_count == 0);
+    I(this, task->get_ref_count() == 0);
     // Kernel should not know about the task any more
     I(this, kernel->get_task_by_id(task->id) == NULL);
     // Now delete the task, which will require using this thread's