Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

fix: torrent completion stuck at 100% DOWNLOADING

InstaZDLL373cf5caf9ea
diff --git a/src-tauri/src/platforms/magnet/mod.rs b/src-tauri/src/platforms/magnet/mod.rs
index a21be2e6..f1792d4e 100644
--- a/src-tauri/src/platforms/magnet/mod.rs
+++ b/src-tauri/src/platforms/magnet/mod.rs
@@ -144,6 +144,12 @@ impl PlatformDownloader for MagnetDownloader {
downloaded as f64 / 1_048_576.0,
total as f64 / 1_048_576.0,
);
+ // Fallback: detect completion from stats when
+ // wait_until_completed() doesn't resolve
+ if downloaded >= total {
+ tracing::info!("[magnet] download complete from stats (id={})", torrent_id);
+ break;
+ }
}
}
_ = cancel_rx.cancelled() => {