From: fhanik Date: Thu, 31 May 2007 10:34:27 +0000 (+0000) Subject: add brackets to clarify what were trying to do X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=af1ce13b57ef25de56c943fb341090291b5d94bd;p=tomcat7.0 add brackets to clarify what were trying to do git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543107 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index 9e0e3deca..727adcba6 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -1518,10 +1518,13 @@ public class NioEndpoint { //invokations for both read and write on separate threads reg(sk, attachment, 0); //read goes before write - if (sk.isReadable()) - if (!processSocket(channel, SocketStatus.OPEN_READ)) processSocket(channel, SocketStatus.DISCONNECT); - else - if (!processSocket(channel, SocketStatus.OPEN_WRITE)) processSocket(channel, SocketStatus.DISCONNECT); + if (sk.isReadable()) { + if (!processSocket(channel, SocketStatus.OPEN_READ)) + processSocket(channel, SocketStatus.DISCONNECT); + } else { + if (!processSocket(channel, SocketStatus.OPEN_WRITE)) + processSocket(channel, SocketStatus.DISCONNECT); + } } else { result = false; }