Timer: delete callback and its arguments in cancel() to avoid holding references longer than necessary
This commit is contained in:
@@ -85,3 +85,7 @@ class Timer(object):
|
||||
self.cancelled = True
|
||||
self.called = True
|
||||
get_hub().timer_canceled(self)
|
||||
try:
|
||||
del self.tpl
|
||||
except AttributeError:
|
||||
pass
|
||||
|
Reference in New Issue
Block a user