Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages 2024-06-19 10:12:10 +08:00 committed by GitHub
parent 5a740e891e
commit 4eafa5a585
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -363,7 +363,7 @@ async fn handle(data: Data, stream: &mut Connection) {
// below part is for main windows can be reopen during rustdesk installation and installing service from UI // below part is for main windows can be reopen during rustdesk installation and installing service from UI
// this make new ipc server (domain socket) can be created. // this make new ipc server (domain socket) can be created.
std::fs::remove_file(&Config::ipc_path("")).ok(); std::fs::remove_file(&Config::ipc_path("")).ok();
hbb_common::sleep(crate::platform::SERVICE_INTERVAL * 2 as _).await; hbb_common::sleep((crate::platform::SERVICE_INTERVAL * 2) as f32).await;
crate::run_me::<&str>(vec![]).ok(); crate::run_me::<&str>(vec![]).ok();
} }
std::process::exit(-1); // to make sure --server luauchagent process can restart because SuccessfulExit used std::process::exit(-1); // to make sure --server luauchagent process can restart because SuccessfulExit used