Commit fb7cc6fe authored by guus's avatar guus

OF-270: Patch by LG - first delete any pending presences, before adding a new...

OF-270: Patch by LG - first delete any pending presences, before adding a new one. Should be crude/effective.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@12956 b35dd754-fafc-0310-a699-88a17e54d16e
parent ba85d931
...@@ -273,7 +273,7 @@ public class PresenceManagerImpl extends BasicModule implements PresenceManager, ...@@ -273,7 +273,7 @@ public class PresenceManagerImpl extends BasicModule implements PresenceManager,
} }
lastActivityCache.put(username, offlinePresenceDate.getTime()); lastActivityCache.put(username, offlinePresenceDate.getTime());
// delete existing offline presence // delete existing offline presence (if any)
deleteOfflinePresenceFromDB(username); deleteOfflinePresenceFromDB(username);
// Insert data into the database. // Insert data into the database.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment