1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 23:03:53 -04:00

Merge pull request #2397 from dtzWill/fix/reported-dl-size-with-callback

download: fix size reported to progress bar
This commit is contained in:
Eelco Dolstra 2018-09-04 12:16:51 +02:00 committed by GitHub
commit 5e0a7206f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -345,7 +345,7 @@ struct CurlDownloader : public Downloader
done = true; done = true;
try { try {
act.progress(result.data->size(), result.data->size()); act.progress(result.bodySize, result.bodySize);
callback(std::move(result)); callback(std::move(result));
} catch (...) { } catch (...) {
done = true; done = true;