From a3080a337334ef6bdb4a81e838ab558fc80fa090 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Thu, 20 Jun 2024 14:27:13 +0800 Subject: [PATCH] revert: just kill --- src-tauri/src/core/core.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src-tauri/src/core/core.rs b/src-tauri/src/core/core.rs index a1707630..51e665de 100644 --- a/src-tauri/src/core/core.rs +++ b/src-tauri/src/core/core.rs @@ -89,10 +89,7 @@ impl CoreManager { let procs = system.processes_by_name("verge-mihomo"); for proc in procs { log::debug!(target: "app", "kill all clash process"); - #[cfg(target_os = "windows")] proc.kill(); - #[cfg(not(target_os = "windows"))] - proc.kill_with(sysinfo::Signal::Interrupt); } if *self.use_service_mode.lock() { @@ -249,10 +246,7 @@ impl CoreManager { let procs = system.processes_by_name("verge-mihomo"); for proc in procs { log::debug!(target: "app", "kill all clash process"); - #[cfg(target_os = "windows")] proc.kill(); - #[cfg(not(target_os = "windows"))] - proc.kill_with(sysinfo::Signal::Interrupt); } Ok(()) }