[kune-commits] r1875 - trunk/src/main/java/cc/kune/core/server

Vicente J. Ruiz Jurado vjrj_ at ourproject.org
Thu May 24 00:18:52 CEST 2012


Author: vjrj_
Date: 2012-05-24 00:18:52 +0200 (Thu, 24 May 2012)
New Revision: 1875

Modified:
   trunk/src/main/java/cc/kune/core/server/UserSessionManager.java
Log:
CLOSED - # 270: Notifications send to online users also (if server restarts) 
http://kune.ourproject.org/issues/ticket/270

Modified: trunk/src/main/java/cc/kune/core/server/UserSessionManager.java
===================================================================
--- trunk/src/main/java/cc/kune/core/server/UserSessionManager.java	2012-05-21 17:22:09 UTC (rev 1874)
+++ trunk/src/main/java/cc/kune/core/server/UserSessionManager.java	2012-05-23 22:18:52 UTC (rev 1875)
@@ -107,16 +107,12 @@
   }
 
   public void logout() {
-    if (isUserLoggedIn()) {
-      logins.remove(getUserLoggedShortName());
-    }
+    logins.remove(getUserLoggedShortName());
     getUserSession().setUserId(null);
     getUserSession().setHash(null);
   }
 
   public void updateLoggedUser() {
-    if (isUserLoggedIn()) {
-      logins.add(getUserLoggedShortName());
-    }
+    logins.add(getUserLoggedShortName());
   }
 }




More information about the kune-commits mailing list