forked from lix-project/lix
ignore "interrupted" exception in progress callback
Context/discusson: https://github.com/NixOS/nix/issues/1692#issuecomment-348282301
This commit is contained in:
parent
cd74a55afc
commit
79f5c296c0
|
@ -169,7 +169,11 @@ struct CurlDownloader : public Downloader
|
|||
|
||||
int progressCallback(double dltotal, double dlnow)
|
||||
{
|
||||
act.progress(dlnow, dltotal);
|
||||
try {
|
||||
act.progress(dlnow, dltotal);
|
||||
} catch (nix::Interrupted &) {
|
||||
assert(_isInterrupted);
|
||||
}
|
||||
return _isInterrupted;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue