aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@tweag.io>2023-02-10 00:57:56 +0100
committerGuillaume Maudoux <guillaume.maudoux@tweag.io>2023-02-10 00:57:56 +0100
commite6ad8e844029ac340dc3f2a4693c3f4a1d645226 (patch)
tree35bf111661a94d3ee2eb7f579d2458fe3f0960cd /src
parentaa18404ecb1fd9cbcb663355e8f5c26ff2b00694 (diff)
nit: cleaner diff
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();
}