mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-14 05:51:02 +08:00
fix: remove redundant service stop call in CoreManager and clean up unused Mutex import
This commit is contained in:
parent
7aef9d2a5a
commit
45ddb15d56
@ -1070,7 +1070,6 @@ impl CoreManager {
|
||||
service::reinstall_service().await?;
|
||||
}
|
||||
logging!(info, Type::Core, true, "服务可用,使用服务模式启动");
|
||||
self.stop_core_by_service().await?;
|
||||
self.start_core_by_service().await?;
|
||||
return Ok(());
|
||||
};
|
||||
|
||||
@ -20,7 +20,6 @@ use crate::{
|
||||
utils::{resolve, server},
|
||||
};
|
||||
use config::Config;
|
||||
use parking_lot::Mutex;
|
||||
use tauri::AppHandle;
|
||||
#[cfg(target_os = "macos")]
|
||||
use tauri::Manager;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user