+ added check for Tor to be ready before openhome works

* fixed not being able to stop Onionr when awaiting onboarding survey to be finished
This commit is contained in:
Kevin Froman 2020-02-11 19:49:44 -06:00
parent 3bb51a16e1
commit 353b2f1c63
5 changed files with 44 additions and 12 deletions

View file

@ -244,7 +244,10 @@ class OnionrCommunicatorDaemon:
while not config.get('onboarding.done', True) and \
not self.shutdown:
time.sleep(2)
try:
time.sleep(2)
except KeyboardInterrupt:
self.shutdown = True
# Main daemon loop, mainly for calling timers,
# don't do any complex operations here to avoid locking