From 381b4ecf0bd2c936aea1b63bc2e2c6b630cb92d1 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Tue, 5 Oct 2010 23:35:16 +0000 Subject: [PATCH] little fix --- track-presence.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/track-presence.py b/track-presence.py index 012b222..b6bb8f8 100755 --- a/track-presence.py +++ b/track-presence.py @@ -370,6 +370,8 @@ class StatusTracker: #(threading.Thread): def checkAgainIn(self, sec): + if sec <= 0.0: + return if self.timer_timeout < time.time(): logging.debug("checkAgainIn: starting Timer with timeout %fs" % sec) self.timer=threading.Timer(sec, self.checkPresenceStateChangeAndNotify) -- 1.7.10.4