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