fix: remove redundant service stop call in CoreManager and clean up unused Mutex import

This commit is contained in:
Tunglies
2025-09-02 12:12:19 +08:00
parent 7aef9d2a5a
commit 45ddb15d56
2 changed files with 0 additions and 2 deletions

View File

@@ -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(());
};

View File

@@ -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;