remove defunct test, add random bint ip test, and fix offline mode

This commit is contained in:
Kevin Froman 2020-01-27 19:32:25 -06:00
parent ef25377e15
commit a1fd5f2648
3 changed files with 24 additions and 23 deletions

View file

@ -84,13 +84,14 @@ def daemon():
shared_state.share_object() # share the parent object to the threads
apiHost = ''
while apiHost == '':
try:
with open(filepaths.public_API_host_file, 'r') as hostFile:
apiHost = hostFile.read()
except FileNotFoundError:
pass
time.sleep(0.5)
if not offline_mode:
while apiHost == '':
try:
with open(filepaths.public_API_host_file, 'r') as hostFile:
apiHost = hostFile.read()
except FileNotFoundError:
pass
time.sleep(0.5)
logger.raw('', terminal=True)
# print nice header thing :)