Browse Source

revert: just kill

MystiPanda 11 tháng trước cách đây
mục cha
commit
a3080a3373
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  1. 0 6
      src-tauri/src/core/core.rs

+ 0 - 6
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(())
     }