src/net/java/sip/communicator/service/protocol/AbstractOperationSetDesktopSharingClient.java
/**
     * Removes a <tt>RemoteControlListener</tt> to be notified when remote peer
     * accept/revoke to give us full control.
     *
     * @param listener <tt>RemoteControlListener</tt> to remove
     */
Removes a RemoteControlListener to be notified when remote peer
accept/revoke to give us full control.

@param listener RemoteControlListener to remove
Removes a RemoteControlListener to be notified when remote peer accept / revoke to give us full control . @param listener RemoteControlListener to remove
public void removeRemoteControlListener(RemoteControlListener listener)
    {
        synchronized (listeners)
        {
            Iterator<WeakReference<RemoteControlListener>> i
                = listeners.iterator();
            while (i.hasNext())
            {
                RemoteControlListener l = i.next().get();
                if ((l == null) || l.equals(listener))
                    i.remove();
            }
        }
    }
public void removeRemoteControlListener ( RemoteControlListener listener ) { synchronized ( listeners ) { Iterator < WeakReference < RemoteControlListener > > i = listeners . iterator ( ) ; while ( i . hasNext ( ) ) { RemoteControlListener l = i . next ( ) . get ( ) ; if ( ( l == null ) || l . equals ( listener ) ) i . remove ( ) ; } } }
Removes a <tt>RemoteControlListener</tt> to be notified when remote peer
 accept/revoke to give us full control.
Removes a <tt > RemoteControlListener< / tt > to be notified when remote peer accept / revoke to give us full control .