increase interval for restart linux ui, try fix loop start (#9264)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages 2024-09-05 18:34:48 +08:00 committed by GitHub
parent 5f29016861
commit 3bd34bf0b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}