mirror of
https://github.com/flibusta-apps/batch_downloader.git
synced 2025-12-06 14:25:36 +01:00
Fix for reuse connections
This commit is contained in:
@@ -46,12 +46,7 @@ pub async fn response_to_tempfile(
|
||||
|
||||
data_size += data.len();
|
||||
|
||||
match tmp_file.write(data.chunk()) {
|
||||
Ok(_) => (),
|
||||
Err(err) => {
|
||||
return Err(Box::new(err));
|
||||
}
|
||||
}
|
||||
tmp_file.write_all(data.chunk())?;
|
||||
}
|
||||
|
||||
tmp_file.seek(SeekFrom::Start(0)).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user