mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
sourceToSink(): Fix abort
This commit is contained in:
parent
ca0f7db843
commit
b8684eb447
1 changed files with 1 additions and 5 deletions
|
@ -218,12 +218,8 @@ std::unique_ptr<FinishSink> sourceToSink(std::function<void(Source &)> fun)
|
|||
|
||||
void finish() override
|
||||
{
|
||||
if (!coro) return;
|
||||
if (!*coro) abort();
|
||||
{
|
||||
if (coro && *coro)
|
||||
(*coro)(true);
|
||||
}
|
||||
if (*coro) abort();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue