fix deadlock on sso network leave

This commit is contained in:
Grant Limberg 2022-04-25 13:56:13 -07:00
parent f3b56d3d94
commit dac32f863e
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735
2 changed files with 13 additions and 10 deletions

View file

@ -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);
}