Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

use exit(-1) in Data::Close to make sure --server can restart

rustdesk1fcc7001bd20
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(_) => {