public void removeCommunicationListener(FTPCommunicationListener listener){
synchronized (lock) {
    communicationListeners.remove(listener);
    if (communication != null) {
      communication.removeCommunicationListener(listener);
    }
  }
}

public void removeCommunicationListener ( FTPCommunicationListener listener ) { synchronized ( lock ) { communicationListeners . remove ( listener ) ; if ( communication != null ) { communication . removeCommunicationListener ( listener ) ; } } }
this method removes a ftpcommunicationlistener previously added to the object .
