reduce update rate on error
authorJames Andrewartha <[email protected]>
Sun, 25 Oct 2009 08:08:19 +0000 (16:08 +0800)
committerJames Andrewartha <[email protected]>
Sun, 25 Oct 2009 08:08:19 +0000 (16:08 +0800)
server.py

index 5814804..11fe9de 100755 (executable)
--- a/server.py
+++ b/server.py
@@ -86,6 +86,8 @@ class Door(dbus.service.Object):
             self.status = newstatus
             # emit signal
             self.status_changed(newstatus)
+            # back off if broken
+            self.interval = [10,10,20][newstatus]
         
         # set up timeout again
         self.timeout = Timer(self.interval, self.poll)

UCC git Repository :: git.ucc.asn.au