diff options
author | Guillaume Maudoux <guillaume.maudoux@tweag.io> | 2023-02-10 00:57:56 +0100 |
---|---|---|
committer | Guillaume Maudoux <guillaume.maudoux@tweag.io> | 2023-02-10 00:57:56 +0100 |
commit | e6ad8e844029ac340dc3f2a4693c3f4a1d645226 (patch) | |
tree | 35bf111661a94d3ee2eb7f579d2458fe3f0960cd /src/libstore/filetransfer.cc | |
parent | aa18404ecb1fd9cbcb663355e8f5c26ff2b00694 (diff) |
nit: cleaner diff
Diffstat (limited to 'src/libstore/filetransfer.cc')
-rw-r--r-- | src/libstore/filetransfer.cc | 2 |
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(); } |