public RTMPConnection removeConnection(int clientId){
  RTMPConnection connReturn=null;
  for (  RTMPConnection conn : rtmpConnections) {
    if (conn.getId() == clientId) {
      connReturn=conn;
      break;
    }
  }
  if (connReturn != null) {
    rtmpConnections.remove(connReturn);
  }
  return connReturn;
}

public RTMPConnection removeConnection ( int clientId ) { RTMPConnection connReturn = null ; for ( RTMPConnection conn : rtmpConnections ) { if ( conn . getId ( ) == clientId ) { connReturn = conn ; break ; } } if ( connReturn != null ) { rtmpConnections . remove ( connReturn ) ; } return connReturn ; }
removes a connection matching the client id specified . if found , the connection will be returned .
