quit cm process if ipc connection to ipc server closed (#9292)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2024-09-08 12:37:41 +08:00
committed by GitHub
parent c8cd564e69
commit 993862c103
4 changed files with 23 additions and 3 deletions

View File

@@ -477,7 +477,10 @@ pub fn core_main() -> Option<Vec<String>> {
} else if args[0] == "--cm-no-ui" {
#[cfg(feature = "flutter")]
#[cfg(not(any(target_os = "android", target_os = "ios", target_os = "windows")))]
crate::flutter::connection_manager::start_cm_no_ui();
{
crate::ui_interface::start_option_status_sync();
crate::flutter::connection_manager::start_cm_no_ui();
}
return None;
} else {
#[cfg(all(feature = "flutter", feature = "plugin_framework"))]