core (memory): fixed a double timer.cancel in Sessions
This commit is contained in:
parent
7f14e1865d
commit
4623af2784
1 changed files with 1 additions and 3 deletions
|
|
@ -123,9 +123,7 @@ class Sessions(object):
|
|||
raise NotImplementedError("You need do use newSession to create a session")
|
||||
|
||||
def __delitem__(self, session_id):
|
||||
""" Cancel the timer, then actually delete the session data """
|
||||
timer = self._sessions[session_id][0]
|
||||
timer.cancel()
|
||||
""" delete the session data """
|
||||
self._purgeSession(session_id)
|
||||
|
||||
def keys(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue