Skip to content

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

add crate::platform::quit_gui(); for double sure

rustdesk77f1c7e74c2f
diff --git a/src/ipc.rs b/src/ipc.rs
index b33264d3e..f1141e041 100644
--- a/src/ipc.rs
+++ b/src/ipc.rs
@@ -381,6 +381,8 @@ async fn handle(data: Data, stream: &mut Connection) {
}
// leave above open a little time
hbb_common::sleep(0.3).await;
+ // in case below exit failed
+ crate::platform::quit_gui();
}
std::process::exit(-1); // to make sure --server luauchagent process can restart because SuccessfulExit used
}