memory: profileSessions.profileGetUnique was not resetting the timer
This commit is contained in:
parent
ccaa5412c5
commit
ef7035a3ca
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue