sourceToSink(): Fix abort

This commit is contained in:
Eelco Dolstra 2024-07-22 20:03:29 +02:00
parent ca0f7db843
commit b8684eb447

View file

@ -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();
}
};