diff --git a/notifier/nf_generic.py b/notifier/nf_generic.py index e48fcbc..fbc4d94 100644 --- a/notifier/nf_generic.py +++ b/notifier/nf_generic.py @@ -53,6 +53,7 @@ __min_timer = None __in_step = False __step_depth = 0 __step_depth_max = 0 +__uint32_max = 2**31 - 1 _options = { 'recursive_depth' : 10, @@ -206,7 +207,7 @@ def step( sleep = True, external = True ): nextCall = timestamp - now if timeout == None or nextCall < timeout: if nextCall > 0: - timeout = nextCall + timeout = min(nextCall, __uint32_max) else: timeout = 0 break