mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 08:12:29 +00:00
nit: cleaner diff
This commit is contained in:
parent
aa18404ecb
commit
e6ad8e8440
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user