Skip to content

Commit

Permalink
Style.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed May 22, 2024
1 parent 50f4c69 commit d1fd1d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/bitcoin/network/impl/async/race_quality.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ finish(const Args&... args) NOEXCEPT
const auto winner = set_winner(!ec);

// Save args for winner (first success) or last failure.
if (winner || (!success_ && (runners_ == one)))
const auto last = (runners_ == one);
if (winner || (last && !success_))
args_ = std::move(values);

// false invoke implies logic error.
Expand Down

0 comments on commit d1fd1d6

Please sign in to comment.