Use Timers.get_timers() instead of Timers.timers

This commit is contained in:
jesopo 2018-10-12 18:15:22 +01:00
parent e901f105dd
commit 0a93e76333

View file

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