From 3e4f377972c771af5af7de879a162b1f51d75ff4 Mon Sep 17 00:00:00 2001 From: fhanik Date: Thu, 31 May 2007 19:34:05 +0000 Subject: [PATCH] rearrange git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543227 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tomcat/util/net/NioBlockingSelector.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/java/org/apache/tomcat/util/net/NioBlockingSelector.java b/java/org/apache/tomcat/util/net/NioBlockingSelector.java index f23e76d4f..a629613ac 100644 --- a/java/org/apache/tomcat/util/net/NioBlockingSelector.java +++ b/java/org/apache/tomcat/util/net/NioBlockingSelector.java @@ -97,15 +97,6 @@ public class NioBlockingSelector { 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 selector parameter is null, then it will perform a busy read that could @@ -164,4 +155,13 @@ public class NioBlockingSelector { 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); + } + }); + } + } \ No newline at end of file -- 2.11.0