Index: PresenceManagerImpl.java
===================================================================
--- PresenceManagerImpl.java	(revision 12950)
+++ PresenceManagerImpl.java	(working copy)
@@ -273,6 +273,9 @@
             }
             lastActivityCache.put(username, offlinePresenceDate.getTime());
 
+            // delete existing offline presence
+            deleteOfflinePresenceFromDB(username);
+            
             // Insert data into the database.
             Connection con = null;
             PreparedStatement pstmt = null;

