Mercurial > code > home > repos > homeauto
diff service/tomatoWifi/tomatoWifi.py @ 52:875a37be1228
fix fetch calls in tomatowifi
Ignore-this: 7b9a676be589b2400a18a16b1d194343
author | drewp@bigasterisk.com |
---|---|
date | Mon, 31 Dec 2012 17:53:42 -0800 |
parents | d2842eedd56d |
children | f8cc3d1baa85 |
line wrap: on
line diff
--- a/service/tomatoWifi/tomatoWifi.py Mon Dec 31 15:01:04 2012 -0800 +++ b/service/tomatoWifi/tomatoWifi.py Mon Dec 31 17:53:42 2012 -0800 @@ -153,7 +153,8 @@ self.lastWithSignal = newWithSignal if actions: # this doesn't currently include signal strength changes fetch(reasoning + "immediateUpdate", - headers={'user-agent': 'tomatoWifi'}).addErrback(log.warn) + timeout=2, + headers={'user-agent': ['tomatoWifi']}).addErrback(log.warn) self.lastAddrs = newAddrs self.lastPollTime = time.time() except Exception, e: