make BaseHub.get_timers_count() return sum of timers+next_timers rather than max()

This commit is contained in:
Edward George
2010-02-28 16:01:05 +00:00
parent 6f7cc6a112
commit 7e6db36e0a

View File

@@ -264,7 +264,7 @@ class BaseHub(object):
return self.listeners[WRITE].values()
def get_timers_count(hub):
return max(len(hub.timers), len(hub.next_timers))
return len(hub.timers) + len(hub.next_timers)
def set_debug_listeners(self, value):
if value: