mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:33:45 +08:00
revert: just kill
This commit is contained in:
parent
d64d25380a
commit
e7c359a2e7
@ -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(())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user