diff --git a/software/src/utils/timer.py b/software/src/utils/timer.py index 301a7e6..99d7552 100644 --- a/software/src/utils/timer.py +++ b/software/src/utils/timer.py @@ -73,7 +73,6 @@ class TimerManager(object): continue except asyncio.TimeoutError: pass - if len(self.timers) == 0: - continue - _, callback = heapq.heappop(self.timers) - safe_callback(callback, "timer callback") + else: + _, callback = heapq.heappop(self.timers) + safe_callback(callback, "timer callback")