Clear download progress bar to avoid flicker during archive extraction (#6162)

This commit is contained in:
Michael Vines 2019-09-29 17:56:33 -07:00 committed by GitHub
parent d50aef8404
commit 11fc684f3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ fn download_to_temp_archive(
if expected_sha256.is_some() && expected_sha256 != Some(&temp_file_sha256) {
Err(io::Error::new(io::ErrorKind::Other, "Incorrect hash"))?;
}
source.progress_bar.finish_and_clear();
Ok((temp_dir, temp_file, temp_file_sha256))
}