Skip to content

Commit d70759c

Browse files
authored
Allow subsequent errors in BoltConnectionWithAuthTokenManager (#1579)
1 parent c4e33b2 commit d70759c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

driver/src/main/java/org/neo4j/driver/internal/async/BoltConnectionWithAuthTokenManager.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,10 @@ public CompletionStage<BoltConnection> clear() {
165165
@Override
166166
public CompletionStage<Void> flush(ResponseHandler handler) {
167167
return delegate.flush(new ResponseHandler() {
168-
private Throwable error;
169168

170169
@Override
171170
public void onError(Throwable throwable) {
172-
if (error == null) {
173-
error = mapSecurityError(throwable);
174-
handler.onError(error);
175-
}
171+
handler.onError(mapSecurityError(throwable));
176172
}
177173

178174
@Override

0 commit comments

Comments
 (0)