From 3bd34bf0b9a9073105db084b01d4b0a108affeab Mon Sep 17 00:00:00 2001 From: 21pages Date: Thu, 5 Sep 2024 18:34:48 +0800 Subject: [PATCH] increase interval for restart linux ui, try fix loop start (#9264) Signed-off-by: 21pages --- src/ipc.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ipc.rs b/src/ipc.rs index 6d5e247d42ce..2b591d107110 100644 --- a/src/ipc.rs +++ b/src/ipc.rs @@ -401,7 +401,8 @@ async fn handle(data: Data, stream: &mut Connection) { std::fs::remove_file(&Config::ipc_path("")).ok(); #[cfg(target_os = "linux")] { - hbb_common::sleep((crate::platform::SERVICE_INTERVAL * 2) as f32 / 1000.0) + // https://github.com/rustdesk/rustdesk/discussions/9254, slow on some machines + hbb_common::sleep((crate::platform::SERVICE_INTERVAL * 2) as f32 / 1000.0 + 1.2) .await; crate::run_me::<&str>(vec![]).ok(); }