mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-31 23:46:48 +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
|
void finish() override
|
||||||
{
|
{
|
||||||
if (!coro) return;
|
if (coro && *coro)
|
||||||
if (!*coro) abort();
|
|
||||||
{
|
|
||||||
(*coro)(true);
|
(*coro)(true);
|
||||||
}
|
|
||||||
if (*coro) abort();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue