An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
still find delegate failure when my mac restarted automatically sometimes
rustdesk690a2c8399f9
diff --git a/src/platform/macos.rs b/src/platform/macos.rsindex 3d14485d2..bb803bdaa 100644--- a/src/platform/macos.rs+++ b/src/platform/macos.rs@@ -507,6 +507,10 @@ pub fn start_os_service() {.map(|p| p.start_time()).unwrap_or_default() as i64;log::info!("Startime: {my_start_time} vs {:?}", server);+ if my_start_time < server.unwrap().0 + 3 {+ log::error!("Please start --server first to make delegate work, earlier more 3 seconds",);+ std::process::exit(-1);+ }std::thread::spawn(move || loop {std::thread::sleep(std::time::Duration::from_secs(1));@@ -519,9 +523,9 @@ pub fn start_os_service() {);std::process::exit(-1);};- if my_start_time <= start_time + 1 {+ if my_start_time < start_time + 3 {log::error!(- "Agent start later, {my_start_time} vs {start_time}, please start --server first to make delegate work",+ "Agent start later, {my_start_time} vs {start_time}, please start --server first to make delegate work, earlier more 3 seconds",);std::process::exit(-1);}