src/net/java/sip/communicator/impl/protocol/jabber/OperationSetPersistentPresenceJabberImpl.java
/**
     * Clear all listeners that depends on XMPPConnection.
     */
Clear all listeners that depends on XMPPConnection.
Clear all listeners that depends on XMPPConnection .
private void clearConnectionListeners()
    {
        XMPPConnection connection = parentProvider.getConnection();
        if(connection != null
            && subscribtionPacketListener != null
            && contactChangesListener != null)
        {
            connection.removeAsyncStanzaListener(
                subscribtionPacketListener);
            Roster.getInstanceFor(connection)
                .removeRosterListener(contactChangesListener);
            subscribtionPacketListener = null;
            contactChangesListener = null;
        }
    }
private void clearConnectionListeners ( ) { XMPPConnection connection = parentProvider . getConnection ( ) ; if ( connection != null && subscribtionPacketListener != null && contactChangesListener != null ) { connection . removeAsyncStanzaListener ( subscribtionPacketListener ) ; Roster . getInstanceFor ( connection ) . removeRosterListener ( contactChangesListener ) ; subscribtionPacketListener = null ; contactChangesListener = null ; } }
Clear all listeners that depends on XMPPConnection.
Clear all listeners that depends on XMPPConnection .