Don't print a message saying we cancelled a timer that we didn't really, if it just fired normally.

This commit is contained in:
donovan
2008-05-29 16:14:37 -07:00
parent 6644bc0a78
commit 75853995eb

View File

@@ -278,7 +278,7 @@ class BaseHub(object):
if greenlet not in self.timers_by_greenlet:
return
for timer in self.timers_by_greenlet[greenlet]:
if not timer.cancelled and timer.seconds:
if not timer.cancelled and not timer.called and timer.seconds:
## If timer.seconds is 0, this isn't a timer, it's
## actually eventlet's silly way of specifying whether
## a coroutine is "ready to run" or not.