Integrated behavior of is[In|Out]putShutdown() with volatile flag and previous implementation.
This commit is contained in:
parent
e27c5a9306
commit
83f2c1b55c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue