core: presence status + last resource refactored and kept in entitiesCache in memory.py, profile cache is purged on disconnection
This commit is contained in:
parent
d229d7feae
commit
8f622601c6
1 changed files with 63 additions and 45 deletions
|
|
@ -256,6 +256,7 @@ class SAT(service.Service):
|
|||
|
||||
return current.getConnectionDeferred()
|
||||
|
||||
self.memory.startProfileSession(profile)
|
||||
return self.memory.loadIndividualParams(profile).addCallback(afterMemoryInit)
|
||||
|
||||
def disconnect(self, profile_key):
|
||||
|
|
@ -290,7 +291,7 @@ class SAT(service.Service):
|
|||
del self.profiles[profile]
|
||||
except KeyError:
|
||||
error(_("Trying to remove reference to a client not referenced"))
|
||||
self.memory.purgeProfile(profile)
|
||||
self.memory.purgeProfileSession(profile)
|
||||
|
||||
def startService(self):
|
||||
info("Salut à toi ô mon frère !")
|
||||
|
|
|
|||
Loading…
Reference in a new issue