From a1c68fabe7153fc4ef9ce2058e7ef4076d622212 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 18 Dec 2019 04:05:37 -0600 Subject: [PATCH] set isOnline to false if offline mode --- src/communicator/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/communicator/__init__.py b/src/communicator/__init__.py index 52001089..d05a8e98 100755 --- a/src/communicator/__init__.py +++ b/src/communicator/__init__.py @@ -63,6 +63,9 @@ class OnionrCommunicatorDaemon: self.isOnline = True # Assume we're connected to the internet self.shared_state = shared_state # TooManyObjects module + if config.get('general.offline_mode', False): + self.isOnline = False + # list of timer instances self.timers = []