mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
feat: add network manager to optimize network request handling
This commit is contained in:
@@ -86,6 +86,9 @@ impl AppHandleManager {
|
||||
|
||||
#[allow(clippy::panic)]
|
||||
pub fn run() {
|
||||
// 初始化网络管理器
|
||||
utils::network::NetworkManager::global().init();
|
||||
|
||||
// 单例检测 - 使用超时机制防止阻塞
|
||||
let app_exists: bool = AsyncHandler::block_on(move || async move {
|
||||
match timeout(Duration::from_secs(3), server::check_singleton()).await {
|
||||
|
||||
Reference in New Issue
Block a user