Integrated behavior of is[In|Out]putShutdown() with volatile flag and previous implementation.

This commit is contained in:
Simone Bordet 2011-11-21 23:31:09 +01:00
parent e27c5a9306
commit 83f2c1b55c
1 changed files with 2 additions and 2 deletions

View File

@ -188,12 +188,12 @@ public class ChannelEndPoint implements EndPoint
public boolean isOutputShutdown()
{
return _oshut;
return _oshut || !_channel.isOpen() || _socket != null && _socket.isOutputShutdown();
}
public boolean isInputShutdown()
{
return _ishut;
return _ishut || !_channel.isOpen() || _socket != null && _socket.isInputShutdown();
}
/* (non-Javadoc)