aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/download.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/download.cc')
-rw-r--r--src/libstore/download.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc
index da31029b4..56560203a 100644
--- a/src/libstore/download.cc
+++ b/src/libstore/download.cc
@@ -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;
}