changeset 1214:ed3b01ed70d7

memory: profileSessions.profileGetUnique was not resetting the timer
author souliane <souliane@mailoo.org>
date Mon, 22 Sep 2014 18:42:54 +0200
parents b5928601d7aa
children d9c399ec5dd9
files src/memory/memory.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/memory/memory.py	Mon Sep 22 20:26:40 2014 +0200
+++ b/src/memory/memory.py	Mon Sep 22 18:42:54 2014 +0200
@@ -146,7 +146,8 @@
         ids = self._profileGetAllIds(profile)
         if len(ids) > 1:
             raise exceptions.InternalError('profileGetUnique has been used but more than one session has been found!')
-        return self._sessions[ids[0]][1] if len(ids) == 1 else None
+        return self.profileGet(ids[0], profile) if len(ids) == 1 else None
+
 
     def profileDelUnique(self, profile):
         """Delete the unique session that is associated to the given profile.