Use Timers.get_timers() instead of Timers.timers
This commit is contained in:
parent
e901f105dd
commit
0a93e76333
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class Timers(object):
|
|||
self.timers.append(timer)
|
||||
|
||||
def next(self):
|
||||
times = filter(None, [timer.time_left() for timer in self.timers])
|
||||
times = filter(None, [timer.time_left() for timer in self.get_timers()])
|
||||
if not times:
|
||||
return None
|
||||
return max(min(times), 0)
|
||||
|
|
Loading…
Reference in a new issue