Skip to content

Commit

Permalink
sourceToSink(): Fix abort
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jul 22, 2024
1 parent fb5b08c commit 431377e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/libutil/serialise.cc
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,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();
}
};

Expand Down

0 comments on commit 431377e

Please sign in to comment.