public void close ( ) throws IllegalStateException { if ( this . open ) { // Close channels this . rtpChannel . close ( ) ; if ( ! this . rtcpMux ) { this . rtcpChannel . close ( ) ; } if ( logger . isDebugEnabled ( ) ) { logger . debug ( this . mediaType + " channel " + this . ssrc + " is closed" ) ; } // Reset state reset ( ) ; this . open = false ; } else { throw new IllegalStateException ( "Channel is already inactive" ) ; } }
Disables the channel and deactivates it s resources .