From: Bernhard Tittelbach Date: Tue, 5 Oct 2010 23:35:16 +0000 (+0000) Subject: little fix X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=381b4ecf0bd2c936aea1b63bc2e2c6b630cb92d1;p=svn42.git little fix --- 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)