Update mod.rs

This commit is contained in:
RustDesk 2023-02-19 22:30:58 +08:00 committed by GitHub
parent 7ba3dce006
commit c2fa74dbbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,25 +40,6 @@ extern "C" fn breakdown_signal_handler(sig: i32) {
true, true,
) )
.ok(); .ok();
// Ignore alert info for now.
// #[cfg(target_os = "macos")]
// {
// use std::sync::mpsc::channel;
// use std::time::Duration;
// let (tx, rx) = channel();
// std::thread::spawn(move || {
// macos::alert(
// "System Preferences".to_owned(),
// "critical".to_owned(),
// "RustDesk Crashed".to_owned(),
// format!("Got signal {} and exit.{}", sig, info),
// ["Ok".to_owned()].to_vec(),
// )
// .ok();
// let _ = tx.send(());
// });
// let _ = rx.recv_timeout(Duration::from_millis(1_000));
// }
} }
exit(0); exit(0);
} }