don't loop too fast

This commit is contained in:
Clint Armstrong
2015-07-13 09:48:18 -04:00
parent d23bed0af7
commit c35a1ea750

View File

@@ -270,3 +270,7 @@ while True:
# If we made it this far, break out of the loop and query again.
break
# Looping with no break causes the service to be killed by init.
# This point is only reached if the query is empty, so sleep half a second before querying again.
time.sleep(.5)