Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
injectives committed Apr 9, 2024
1 parent 1e62146 commit 0666422
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,12 +467,10 @@ public CompletionStage<Void> flush(ResponseHandler handler) {

@Override
public CompletionStage<Void> close() {
var resultFuture = new CompletableFuture<Void>();
try {
return connection.close();
} catch (Throwable throwable) {
resultFuture.completeExceptionally(throwable);
return resultFuture;
return CompletableFuture.failedStage(throwable);
}
}

Expand Down

0 comments on commit 0666422

Please sign in to comment.