diff --git a/xmppserver/src/main/java/org/jivesoftware/openfire/nio/NettyOutboundConnectionHandler.java b/xmppserver/src/main/java/org/jivesoftware/openfire/nio/NettyOutboundConnectionHandler.java index d1c72a8ecd..040e7ed26b 100644 --- a/xmppserver/src/main/java/org/jivesoftware/openfire/nio/NettyOutboundConnectionHandler.java +++ b/xmppserver/src/main/java/org/jivesoftware/openfire/nio/NettyOutboundConnectionHandler.java @@ -17,7 +17,6 @@ package org.jivesoftware.openfire.nio; import io.netty.channel.ChannelHandlerContext; -import io.netty.handler.ssl.SslHandler; import io.netty.handler.ssl.SslHandshakeCompletionEvent; import org.dom4j.*; import org.jivesoftware.openfire.Connection; @@ -153,7 +152,6 @@ public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exc } else { // SSL Handshake has failed Log.debug("TLS negotiation with '{}' was unsuccessful", domainPair.getRemote(), event.cause()); - ctx.pipeline().remove(SslHandler.class); if (isCertificateException(event) && configRequiresStrictCertificateValidation()) { String condition = "caused by an issue with its TLS certificate";