mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-30 18:52:12 +08:00
chore(core): document watcher exit conditions
This commit is contained in:
@@ -84,6 +84,7 @@ pub async fn sync_tray_proxy_selection() -> CmdResult<()> {
|
||||
}
|
||||
|
||||
async fn run_tray_sync_loop() {
|
||||
// Permanent watcher: keeps syncing until a pass finds no pending sync request.
|
||||
loop {
|
||||
match Tray::global().update_menu().await {
|
||||
Ok(_) => {
|
||||
|
||||
@@ -490,6 +490,7 @@ impl SilentUpdater {
|
||||
}
|
||||
|
||||
pub async fn start_background_check(&self, app_handle: tauri::AppHandle) {
|
||||
// Permanent watcher: daily update cycles for the lifetime of the app.
|
||||
logging!(info, Type::System, "Silent updater: background task started");
|
||||
|
||||
tokio::time::sleep(std::time::Duration::from_secs(10)).await;
|
||||
|
||||
Reference in New Issue
Block a user