From 36e7aea16e696038576b542772d5a9f9e68049a4 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Thu, 3 Feb 2011 09:53:26 +0000 Subject: [PATCH] 335641 sweep works with async git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2735 7e9141cc-0065-0410-87d8-b60c137991c4 --- .../java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java index 921947713a7..1108a75ccbd 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java @@ -625,7 +625,7 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo { synchronized (this) { - if (!_changing && !_dispatched && key.interestOps()!=_interestOps) + if (!_changing && key.interestOps()!=_interestOps && isReadyForDispatch()) { Log.warn("NIO InterestOps mismatch "+key.interestOps()+"!="+_interestOps+" for "+this); updateKey();