summaryrefslogtreecommitdiffstats
path: root/policyhandler/step_timer.py
diff options
context:
space:
mode:
Diffstat (limited to 'policyhandler/step_timer.py')
-rw-r--r--policyhandler/step_timer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/policyhandler/step_timer.py b/policyhandler/step_timer.py
index 768b400..0f4f8e4 100644
--- a/policyhandler/step_timer.py
+++ b/policyhandler/step_timer.py
@@ -71,9 +71,11 @@ class StepTimer(Thread):
self._finished,
)
- def next(self):
+ def next(self, interval=None):
"""continue with the next timeout"""
with self._lock:
+ if interval:
+ self._interval = interval
self._paused = False
if self._waiting_for_timeout:
self._next.set()