This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push: new 4049a74 Remove unnecessary code 4049a74 is described below commit 4049a74f0e8556b1a230858a71f2217539c674a5 Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Nov 23 15:44:26 2020 +0000 Remove unnecessary code --- java/org/apache/tomcat/util/net/NioEndpoint.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index 2af6dce..ab2766b 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -546,9 +546,7 @@ public class NioEndpoint extends AbstractJsseEndpoint<NioChannel,SocketChannel> int interestOps = pe.getInterestOps(); if (sc == null) { log.warn(sm.getString("endpoint.nio.nullSocketChannel")); - if (socketWrapper != null) { - socketWrapper.close(); - } + socketWrapper.close(); } else if (interestOps == OP_REGISTER) { try { sc.register(getSelector(), SelectionKey.OP_READ, socketWrapper); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org