make BaseHub.get_timers_count() return sum of timers+next_timers rather than max()
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user