changeset 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 77751f5b2242
children 77cd312d32c4
files src/memory/memory.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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):