public void remove(final Channel channel){
synchronized (channels) {
    for (final Iterator chanIter=channels.iterator(); chanIter.hasNext(); ) {
      if (chanIter.next() == channel) {
        chanIter.remove();
        break;
      }
    }
  }
}

public void remove ( final Channel channel ) { synchronized ( channels ) { for ( final Iterator chanIter = channels . iterator ( ) ; chanIter . hasNext ( ) ; ) { if ( chanIter . next ( ) == channel ) { chanIter . remove ( ) ; break ; } } } }
removes the specified channel if it is known to the socket
