Mercurial > code > home > repos > homeauto
changeset 282:0498634eba17
don't break GET=/ page when we're in slow-updates debug mode
Ignore-this: bf5d1ea38109cbcb9ec44f1559e254a9
author | drewp@bigasterisk.com |
---|---|
date | Fri, 06 May 2016 17:34:54 -0700 |
parents | 9728288c7f2f |
children | 0b0fb67b0b3a |
files | service/reasoning/reasoning.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/service/reasoning/reasoning.py Fri May 06 17:34:26 2016 -0700 +++ b/service/reasoning/reasoning.py Fri May 06 17:34:54 2016 -0700 @@ -143,7 +143,7 @@ # make sure GET / fails if our poll loop died ago = time.time() - self.settings.reasoning.lastPollTime - if ago > 2: + if ago > 15: self.set_status(500) self.finish("last poll was %s sec ago. last error: %s" % (ago, self.settings.reasoning.lastError))