Skip to content

Commit

Permalink
Notify bolt handler of all errors in routed connection
Browse files Browse the repository at this point in the history
  • Loading branch information
injectives committed Nov 20, 2024
1 parent c85bbf5 commit 27037c1
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,9 @@ public CompletionStage<BoltConnection> clear() {
@Override
public CompletionStage<Void> flush(ResponseHandler handler) {
return delegate.flush(new ResponseHandler() {
private Throwable error;

@Override
public void onError(Throwable throwable) {
if (error == null) {
error = handledError(throwable);
handler.onError(error);
}
handler.onError(handledError(throwable));
}

@Override
Expand Down

0 comments on commit 27037c1

Please sign in to comment.