Author: fhanik
Date: Thu May 31 12:34:05 2007
New Revision: 543227

URL: http://svn.apache.org/viewvc?view=rev&rev=543227
Log:
rearrange

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/NioBlockingSelector.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/NioBlockingSelector.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/NioBlockingSelector.java?view=diff&rev=543227&r1=543226&r2=543227
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/NioBlockingSelector.java 
(original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/NioBlockingSelector.java Thu 
May 31 12:34:05 2007
@@ -97,15 +97,6 @@
         return written;
     }
 
-    private static void cancelKey(final NioChannel socket, final SelectionKey 
key) {
-        socket.getPoller().addEvent(
-            new Runnable() {
-            public void run() {
-                socket.getPoller().cancelledKey(key,SocketStatus.ERROR,false);
-            }
-        });
-    }
-
     /**
      * Performs a blocking read using the bytebuffer for data to be read
      * If the <code>selector</code> parameter is null, then it will perform a 
busy read that could
@@ -162,6 +153,15 @@
             }
         }
         return read;
+    }
+
+    private static void cancelKey(final NioChannel socket, final SelectionKey 
key) {
+        socket.getPoller().addEvent(
+            new Runnable() {
+            public void run() {
+                socket.getPoller().cancelledKey(key,SocketStatus.ERROR,false);
+            }
+        });
     }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to