384254 revert change to writable when not dispatched

This commit is contained in:
Greg Wilkins 2012-07-05 12:38:42 +02:00
parent 5e619ce525
commit 88d92f584b
1 changed files with 8 additions and 6 deletions

View File

@ -333,9 +333,10 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo
if (l==0 && ( header!=null && header.hasContent() || buffer!=null && buffer.hasContent() || trailer!=null && trailer.hasContent()))
{
synchronized (this)
{
if (_dispatched)
_writable=false;
{
_writable=false;
if (!_dispatched)
updateKey();
}
}
else if (l>0)
@ -358,9 +359,10 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo
if (l==0 && buffer!=null && buffer.hasContent())
{
synchronized (this)
{
if (_dispatched)
_writable=false;
{
_writable=false;
if (!_dispatched)
updateKey();
}
}
else if (l>0)