mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 14:41:28 +03:00
wake lock for all connection type
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -618,10 +618,11 @@ pub mod client {
|
||||
}
|
||||
|
||||
pub extern "C" fn drop_portable_service_shared_memory() {
|
||||
// https://stackoverflow.com/questions/35980148/why-does-an-atexit-handler-panic-when-it-accesses-stdout
|
||||
// Please make sure there is no print in the call stack
|
||||
let mut lock = SHMEM.lock().unwrap();
|
||||
if lock.is_some() {
|
||||
*lock = None;
|
||||
log::info!("drop shared memory");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user