core (memory): fixed bad memory cleaning on asyncDeleteProfile
This commit is contained in:
parent
ba7e46d8a9
commit
a3c15277bc
1 changed files with 9 additions and 2 deletions
|
|
@ -504,8 +504,15 @@ class Memory(object):
|
|||
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 cleanMemory(dummy):
|
||||
self.auth_sessions.profileDelUnique(name)
|
||||
try:
|
||||
del self._entities_cache[name]
|
||||
except KeyError:
|
||||
pass
|
||||
d = self.params.asyncDeleteProfile(name, force)
|
||||
d.addCallback(cleanMemory)
|
||||
return d
|
||||
|
||||
## History ##
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue