about summary refs log tree commit diff
path: root/src/rt/rust_port.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_port.cpp')
-rw-r--r--src/rt/rust_port.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_port.cpp b/src/rt/rust_port.cpp
index 5f46b9c4ca0..97fe6a892c8 100644
--- a/src/rt/rust_port.cpp
+++ b/src/rt/rust_port.cpp
@@ -21,8 +21,8 @@ rust_port::~rust_port() {
 }
 
 void rust_port::detach() {
-    I(task->thread, !task->lock.lock_held_by_current_thread());
-    scoped_lock with(task->lock);
+    I(task->thread, !task->port_lock.lock_held_by_current_thread());
+    scoped_lock with(task->port_lock);
     {
         task->release_port(id);
     }