Browse Source

check for onionr exit when awaiting onboarding completion

fix-onboarding-loading
Kevin Froman 2 years ago
parent
commit
3bb51a16e1
  1. 5
      src/communicator/__init__.py

5
src/communicator/__init__.py

@ -242,8 +242,9 @@ class OnionrCommunicatorDaemon:
'First run detected. Run openhome to get setup.',
terminal=True)
while not config.get('onboarding.done', True):
time.sleep(5)
while not config.get('onboarding.done', True) and \
not self.shutdown:
time.sleep(2)
# Main daemon loop, mainly for calling timers,
# don't do any complex operations here to avoid locking

Loading…
Cancel
Save