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(()) }