Skip to content

Commit

Permalink
Fixed CompositeFutureAction#whenDone returning an exception even if s…
Browse files Browse the repository at this point in the history
…uccessful
  • Loading branch information
Raft08 committed Apr 7, 2024
1 parent f57a7ad commit 741d211
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public CompositeFutureAction onFailure(@NotNull Consumer<Throwable> listener) {
@CanIgnoreReturnValue
public CompositeFutureAction whenDone(BiConsumer<Void, Throwable> listener) {
if (this.isDone()) {
listener.accept(null, new Exception("One or more futures failed execution."));
listener.accept(null, this.cause);
return this;
}

Expand Down

0 comments on commit 741d211

Please sign in to comment.