Make task_died work with no internet
This commit is contained in:
parent
8abb15cdd3
commit
34f0444de7
5
main.py
5
main.py
|
@ -477,7 +477,10 @@ def task_died(future):
|
|||
logging.error('Sensors server task died!')
|
||||
else:
|
||||
logging.error('Sensors server task died! Waiting 60s and exiting...')
|
||||
controller_message('Sensors server task died! Waiting 60s and exiting...')
|
||||
try:
|
||||
controller_message('Sensors server task died! Waiting 60s and exiting...')
|
||||
except: # we want this to succeed no matter what
|
||||
pass
|
||||
time.sleep(60)
|
||||
exit()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user