From e4d1f96ad6155c839a24d385e9163e1fcfc01b87 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 7 Jun 2023 23:33:05 +0800 Subject: [PATCH] fix ci --- src/platform/windows.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/windows.rs b/src/platform/windows.rs index 55f732691..df783b781 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -2178,7 +2178,7 @@ pub fn install_service() -> bool { log::info!("Installing service..."); let (_, _, _, exe) = get_install_info(); let tmp_path = std::env::temp_dir().to_string_lossy().to_string(); - let tray_shortcut = get_tray_shortcut(&exe, &tmp_path)?; + let tray_shortcut = get_tray_shortcut(&exe, &tmp_path).unwrap_or_default(); let filter = format!(" /FI \"PID ne {}\"", get_current_pid()); Config::set_option("stop-service".into(), "".into()); crate::ipc::EXIT_RECV_CLOSE.store(false, Ordering::Relaxed); @@ -2270,7 +2270,7 @@ fn run_after_run_cmds(silent: bool) { if Config::get_option("stop-service") != "Y" { allow_err!(std::process::Command::new(&exe).arg("--tray").spawn()); } - std::thread::sleep(std::time::Duration::from_millis(300)); + std::thread::sleep(std::time::Duration::from_millis(300)); } #[cfg(test)]