remove defunct test, add random bint ip test, and fix offline mode
This commit is contained in:
parent
ef25377e15
commit
a1fd5f2648
3 changed files with 24 additions and 23 deletions
|
@ -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 :)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue