set isOnline to false if offline mode

master
Kevin Froman 2019-12-18 04:05:37 -06:00
parent f42e777408
commit a1c68fabe7
1 changed files with 3 additions and 0 deletions

View File

@ -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 = []