aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstore/filetransfer.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc
index a9a5d1389..3ca40db72 100644
--- a/src/libstore/filetransfer.cc
+++ b/src/libstore/filetransfer.cc
@@ -829,6 +829,7 @@ void FileTransfer::download(FileTransferRequest && request, Sink & sink)
auto state(_state->lock());
if (state->data.empty()) {
+
if (state->quit) {
if (state->exc) std::rethrow_exception(state->exc);
return;
@@ -840,6 +841,7 @@ void FileTransfer::download(FileTransferRequest && request, Sink & sink)
}
chunk = std::move(state->data);
+
state->request.notify_one();
}