diff src/memory/memory.py @ 1097:dace0ede919c

memory (memory): delete profile session on profile deletion
author souliane <souliane@mailoo.org>
date Fri, 27 Jun 2014 20:05:31 +0200
parents 594fbdda4a87
children 96fb74a4714d
line wrap: on
line diff
--- a/src/memory/memory.py	Thu Jun 26 14:59:02 2014 +0200
+++ b/src/memory/memory.py	Fri Jun 27 20:05:31 2014 +0200
@@ -331,6 +331,7 @@
         To be used for direct calls only (not through the bridge).
         @return: a Deferred instance
         """
+        self.auth_sessions.profileDelUnique(name)
         return self.params.asyncDeleteProfile(name, force)
 
     def addToHistory(self, from_jid, to_jid, message, type_='chat', extra=None, timestamp=None, profile=C.PROF_KEY_NONE):