Merge pull request #1707 from dtzWill/fix/issue-1692
ignore "interrupted" exception in progress callback
This commit is contained in:
commit
040acdcee2
1 changed files with 5 additions and 1 deletions
|
@ -173,7 +173,11 @@ struct CurlDownloader : public Downloader
|
||||||
|
|
||||||
int progressCallback(double dltotal, double dlnow)
|
int progressCallback(double dltotal, double dlnow)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
act.progress(dlnow, dltotal);
|
act.progress(dlnow, dltotal);
|
||||||
|
} catch (nix::Interrupted &) {
|
||||||
|
assert(_isInterrupted);
|
||||||
|
}
|
||||||
return _isInterrupted;
|
return _isInterrupted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue