refactor(sysproxy): watch the network from the main run loop

This commit is contained in:
wonfen
2026-09-03 22:42:50 +08:00
parent e57d115110
commit c0c1fbcfc2
2 changed files with 25 additions and 41 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ pub(crate) fn resolve_setup_async() {
// Live before the core starts, so a service appearing mid-start is not missed.
#[cfg(target_os = "macos")]
crate::core::network_watch::start().await;
crate::core::network_watch::start();
let core_init = AsyncHandler::spawn(|| async {
init_core_manager().await;