From db23b86dcaee572ff7676206aa455486b1291bb5 Mon Sep 17 00:00:00 2001 From: objz Date: Tue, 16 Jun 2026 10:27:21 +0200 Subject: [PATCH] fix: flush downloaded files before returning --- src/net/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net/mod.rs b/src/net/mod.rs index 7cc3539..f8c095f 100644 --- a/src/net/mod.rs +++ b/src/net/mod.rs @@ -222,6 +222,7 @@ async fn download_file_once( downloaded += chunk.len() as u64; progress_cb(downloaded, total); } + file.flush().await?; Ok(()) }