public void initialState ( ) { commandBuffer . clear ( ) ; Channel currentChannel = this . channel ; if ( currentChannel != null ) { ChannelFuture close = currentChannel . close ( ) ; if ( currentChannel . isOpen ( ) ) { close . syncUninterruptibly ( ) ; } } }
Reset the command - handler to the initial not - connected state .