376201 - HalfClosed state not handled properly.

Addendum to restore previous behavior, where a closed stream was also half closed.
This commit is contained in:
Simone Bordet 2012-04-12 12:57:04 +02:00
parent 9cc43c5f93
commit a389d08c26
1 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,9 @@ public class StandardStream implements IStream
public boolean isHalfClosed()
{
CloseState closeState = this.closeState;
return closeState == CloseState.LOCALLY_CLOSED || closeState == CloseState.REMOTELY_CLOSED;
return closeState == CloseState.LOCALLY_CLOSED ||
closeState == CloseState.REMOTELY_CLOSED ||
closeState == CloseState.CLOSED;
}
@Override