Timer: delete callback and its arguments in cancel() to avoid holding references longer than necessary

This commit is contained in:
Denis Bilenko
2008-12-10 15:57:49 +06:00
parent 90ac9e854b
commit 1248636fab

View File

@@ -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