Mercurial > code > home > repos > homeauto
changeset 1087:806d2f633775
don't break GET=/ page when we're in slow-updates debug mode
Ignore-this: bf5d1ea38109cbcb9ec44f1559e254a9
darcs-hash:efcba1821da0f5ec47d1dd2470a5ff874f8ed928
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 06 May 2016 17:34:54 -0700 |
parents | 6ab5238fc049 |
children | 0f6128740000 |
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))