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(); }