diff --git a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/PrefaceHandlerBase.java b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/PrefaceHandlerBase.java index 3a5912b47..c967699dc 100644 --- a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/PrefaceHandlerBase.java +++ b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/PrefaceHandlerBase.java @@ -96,9 +96,6 @@ public void exception(final IOSession session, final Exception cause) { protocolHandler.exception(session, cause); } else { CommandSupport.failCommands(session, cause); - if (exceptionCallback != null) { - exceptionCallback.execute(cause); - } } } catch (final Exception ex) { if (completed.compareAndSet(false, true) && resultCallback != null) {