huge use of weakrefs to remove memoryleaks due to circular references
This commit is contained in:
@ -52,7 +52,10 @@ class Storage(object):
|
||||
_list_sessions.append(self.session_id)
|
||||
|
||||
def __del__(self):
|
||||
_list_sessions.remove(self.session_id)
|
||||
try:
|
||||
_list_sessions.remove(self.session_id)
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
|
||||
class Cache(object):
|
||||
|
Reference in New Issue
Block a user