From ef7035a3ca92fb3653b3b0c5d7a9dbe92ae7c128 Mon Sep 17 00:00:00 2001 From: souliane Date: Mon, 22 Sep 2014 18:42:54 +0200 Subject: [PATCH] memory: profileSessions.profileGetUnique was not resetting the timer --- src/memory/memory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/memory/memory.py b/src/memory/memory.py index d08b549d..817809cd 100644 --- a/src/memory/memory.py +++ b/src/memory/memory.py @@ -146,7 +146,8 @@ class ProfileSessions(Sessions): 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.