[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/impl/protocol/gibberish/OperationSetPersistentPresenceGibberishImpl.java

emcho at dev.java.net emcho at dev.java.net
Mon Apr 23 20:31:44 CEST 2007


User: emcho   
Date: 2007-04-23 18:31:44+0000
Log:
 optimize imports

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/impl/protocol/gibberish/
===================================================================================

File [changed]: OperationSetPersistentPresenceGibberishImpl.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/protocol/gibberish/OperationSetPersistentPresenceGibberishImpl.java?r1=1.3&r2=1.4
Delta lines:  +7 -1
-------------------
--- OperationSetPersistentPresenceGibberishImpl.java	2007-03-10 14:33:29+0000	1.3
+++ OperationSetPersistentPresenceGibberishImpl.java	2007-04-23 18:31:41+0000	1.4
@@ -11,7 +11,6 @@
 import net.java.sip.communicator.service.protocol.*;
 import net.java.sip.communicator.service.protocol.event.*;
 import net.java.sip.communicator.util.*;
-import net.java.sip.communicator.impl.protocol.gibberish.OperationSetPersistentPresenceGibberishImpl.*;
 import org.osgi.framework.*;
 
 /**
@@ -1217,6 +1216,13 @@
          */
         public void registrationStateChanged(RegistrationStateChangeEvent evt)
         {
+            if (! evt.getNewState().equals(RegistrationState.UNREGISTERED)
+                && !evt.getNewState().equals(RegistrationState.AUTHENTICATION_FAILED)
+                && !evt.getNewState().equals(RegistrationState.CONNECTION_FAILED))
+            {
+                return;
+            }
+
             //send event notifications saying that all our buddies are
             //offline. The icq protocol does not implement top level buddies
             //nor subgroups for top level groups so a simple nested loop




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list