little fix
authorBernhard Tittelbach <xro@realraum.at>
Tue, 5 Oct 2010 23:35:16 +0000 (23:35 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Tue, 5 Oct 2010 23:35:16 +0000 (23:35 +0000)
track-presence.py

index 012b222..b6bb8f8 100755 (executable)
@@ -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)