mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-19 11:11:04 +03:00
open new window not always work, so give it a little time before exit
This commit is contained in:
@@ -263,6 +263,8 @@ pub fn uninstall_service(show_new_window: bool, sync: bool) -> bool {
|
||||
.arg(&format!("/Applications/{}.app", crate::get_app_name()))
|
||||
.spawn()
|
||||
.ok();
|
||||
// leave open a little time
|
||||
std::thread::sleep(std::time::Duration::from_millis(300));
|
||||
}
|
||||
quit_gui();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user