From 3bb51a16e13863abc724f5899098a6540bb83062 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Tue, 11 Feb 2020 16:47:30 -0600 Subject: [PATCH] check for onionr exit when awaiting onboarding completion --- src/communicator/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/communicator/__init__.py b/src/communicator/__init__.py index 304e8011..4091ced3 100755 --- a/src/communicator/__init__.py +++ b/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