Skip to content

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

mainly for mac, if somehow --server not killed

rustdesk85c149d8e443
diff --git a/src/tray.rs b/src/tray.rs
index 8618e0f78..2f4aae93a 100644
--- a/src/tray.rs
+++ b/src/tray.rs
@@ -107,7 +107,9 @@ pub fn make_tray() -> hbb_common::ResultType<()> {
return;
}
*/
- crate::platform::uninstall_service(false);
+ if !crate::platform::uninstall_service(false) {
+ *control_flow = ControlFlow::Exit;
+ }
} else if event.id == open_i.id() {
open_func();
}