368992 avoid update key while flushing during a write
This commit is contained in:
parent
067e3f17cb
commit
f3735fab7b
|
@ -323,9 +323,8 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo
|
||||||
{
|
{
|
||||||
synchronized (this)
|
synchronized (this)
|
||||||
{
|
{
|
||||||
|
if (_dispatched)
|
||||||
_writable=false;
|
_writable=false;
|
||||||
if (!_dispatched)
|
|
||||||
updateKey();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (l>0)
|
else if (l>0)
|
||||||
|
@ -349,9 +348,8 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo
|
||||||
{
|
{
|
||||||
synchronized (this)
|
synchronized (this)
|
||||||
{
|
{
|
||||||
|
if (_dispatched)
|
||||||
_writable=false;
|
_writable=false;
|
||||||
if (!_dispatched)
|
|
||||||
updateKey();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (l>0)
|
else if (l>0)
|
||||||
|
|
Loading…
Reference in New Issue