Skip to content

Commit 99bceb6

Browse files
committed
Fix deadlock
1 parent 3e40c05 commit 99bceb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vm/src/builtins/staticmethod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ impl Callable for PyStaticMethod {
179179
type Args = FuncArgs;
180180
#[inline]
181181
fn call(zelf: &crate::Py<Self>, args: FuncArgs, vm: &VirtualMachine) -> PyResult {
182-
vm.invoke(&zelf.callable.lock().clone(), args)
182+
let callable = zelf.callable.lock().clone();
183+
vm.invoke(&callable, args)
183184
}
184185
}
185186

0 commit comments

Comments
 (0)