368992 avoid update key while flushing during a write

This commit is contained in:
Greg Wilkins 2012-01-24 18:27:59 +11:00
parent 067e3f17cb
commit f3735fab7b
1 changed files with 4 additions and 6 deletions

View File

@ -323,9 +323,8 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo
{
synchronized (this)
{
_writable=false;
if (!_dispatched)
updateKey();
if (_dispatched)
_writable=false;
}
}
else if (l>0)
@ -349,9 +348,8 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo
{
synchronized (this)
{
_writable=false;
if (!_dispatched)
updateKey();
if (_dispatched)
_writable=false;
}
}
else if (l>0)