tab police
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 14 May 2008 02:29:56 +0000 (02:29 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 14 May 2008 02:29:56 +0000 (02:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@656089 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/NioBlockingSelector.java

index 3043cdd..292bbdf 100644 (file)
@@ -232,7 +232,7 @@ public class NioBlockingSelector {
                         if (sk == null) {
                             sk = ch.register(selector, ops, key);
                         } else if (!sk.isValid()) {
-                               cancel(sk,key,ops);
+                            cancel(sk,key,ops);
                         } else {
                             sk.interestOps(sk.interestOps() | ops);
                         }
@@ -266,12 +266,12 @@ public class NioBlockingSelector {
                                if (SelectionKey.OP_WRITE==(ops&SelectionKey.OP_WRITE)) countDown(key.getWriteLatch());
                                if (SelectionKey.OP_READ==(ops&SelectionKey.OP_READ))countDown(key.getReadLatch());
                                if (sk.interestOps()==0) {
-                                       sk.cancel();
-                                       sk.attach(null);
+                                   sk.cancel();
+                                   sk.attach(null);
                                }
                             }else {
-                                       sk.cancel();
-                                       sk.attach(null);
+                                sk.cancel();
+                                sk.attach(null);
                             }
                         }
                     }catch (CancelledKeyException cx) {