From 1fcc7001bd204889ac857cd05f087d9562293bed Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 18 Jun 2024 22:42:42 +0800 Subject: [PATCH] use exit(-1) in Data::Close to make sure --server can restart --- src/ipc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc.rs b/src/ipc.rs index 5c926829c..d76f51820 100644 --- a/src/ipc.rs +++ b/src/ipc.rs @@ -358,7 +358,7 @@ async fn handle(data: Data, stream: &mut Connection) { if is_server() { let _ = privacy_mode::turn_off_privacy(0, Some(PrivacyModeState::OffByPeer)); } - std::process::exit(0); + std::process::exit(-1); // to make sure --server luauchagent process can restart because SuccessfulExit used } } Data::OnlineStatus(_) => {