mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Fix deadlock
This commit is contained in:
@@ -179,7 +179,8 @@ impl Callable for PyStaticMethod {
|
||||
type Args = FuncArgs;
|
||||
#[inline]
|
||||
fn call(zelf: &crate::Py<Self>, args: FuncArgs, vm: &VirtualMachine) -> PyResult {
|
||||
vm.invoke(&zelf.callable.lock().clone(), args)
|
||||
let callable = zelf.callable.lock().clone();
|
||||
vm.invoke(&callable, args)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user