mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Wait until buffer is empty when downloading
This commit is contained in:
parent
64717fd405
commit
7c3bbfc173
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ pub async fn download_segments(
|
||||||
data_pos += 1;
|
data_pos += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if *count.lock().unwrap() >= total_segments {
|
if *count.lock().unwrap() >= total_segments && buf.is_empty() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue