diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp index 21422646f0d..8ce79ec9106 100644 --- a/src/rt/rust_kernel.cpp +++ b/src/rt/rust_kernel.cpp @@ -337,7 +337,7 @@ void rust_kernel::end_weak_tasks() { std::vector chancopies; { - //scoped_lock with(weak_task_lock); + scoped_lock with(weak_task_lock); chancopies = weak_task_chans; weak_task_chans.clear(); }