public void removeDiscoveryListener(DiscoveryListener l){
synchronized (registrars) {
    if (terminated) {
      throw new IllegalStateException("discovery terminated");
    }
    listeners.remove(l);
  }
}

public void removeDiscoveryListener ( DiscoveryListener l ) { synchronized ( registrars ) { if ( terminated ) { throw new IllegalStateException ( "discovery terminated" ) ; } listeners . remove ( l ) ; } }
indicate that a listener is no longer interested in receiving discoveryevent notifications .
