question: private boolean closeInternal ( ErrorCode errorCode ) { assert ( ! Thread . holdsLock ( this ) ) ; synchronized ( this ) { if ( this . errorCode != null ) { return false ; } if ( in . finished && out . finished ) { return false ; } this . errorCode = errorCode ; notifyAll ( ) ; } connection . removeStream ( id ) ; return true ; }
target:  Returns true if this stream was closed.