mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-02-16 02:20:43 +00:00
Updated breakdown_signal_handler in src/platform/mod.rs to obtain a raw pointer to GLOBAL_CALLBACK instead of a shared reference.
This commit is contained in:
@@ -62,7 +62,7 @@ extern "C" fn breakdown_signal_handler(sig: i32) {
|
||||
.ok();
|
||||
}
|
||||
unsafe {
|
||||
if let Some(callback) = &GLOBAL_CALLBACK {
|
||||
if let Some(callback) = &raw const GLOBAL_CALLBACK {
|
||||
callback()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user