public static void unregisterClientMembershipListener(ClientMembershipListener listener) {
    startMonitoring();
    synchronized (membershipLock) {
      List<ClientMembershipListener> oldListeners = clientMembershipListeners;
      if (oldListeners.contains(listener)) {
        List<ClientMembershipListener> newListeners =
            new ArrayList<>(oldListeners);
        if (newListeners.remove(listener)) {
          clientMembershipListeners = newListeners;
        }
      }
    }
  }
Removes registration of a previously registered {@link ClientMembershipListener}.

@param listener a ClientMembershipListener to be unregistered
geode-core/src/main/java/org/apache/geode/internal/cache/tier/InternalClientMembership.java