mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-10 07:13:09 -07:00
fix deadlock on sso network leave
This commit is contained in:
parent
f3b56d3d94
commit
dac32f863e
2 changed files with 13 additions and 10 deletions
|
@ -80,6 +80,12 @@ pub extern "C" fn zeroidc_delete(ptr: *mut ZeroIDC) {
|
|||
if ptr.is_null() {
|
||||
return;
|
||||
}
|
||||
let idc = unsafe {
|
||||
assert!(!ptr.is_null());
|
||||
&mut *ptr
|
||||
};
|
||||
idc.stop();
|
||||
|
||||
unsafe {
|
||||
Box::from_raw(ptr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue