forked from M-Labs/artiq
1
0
Fork 0

allow dashboard to close if no connection can be made to moninj

Signed-off-by: Leon Riesebos <leon.riesebos@duke.edu>
This commit is contained in:
Leon Riesebos 2020-12-02 17:29:39 -05:00 committed by Sébastien Bourdeauducq
parent 71719f3861
commit a694d130b7
1 changed files with 3 additions and 0 deletions

View File

@ -399,6 +399,9 @@ class _DeviceManager:
self.disconnect_cb)
try:
await new_core_connection.connect(self.core_addr, 1383)
except asyncio.CancelledError:
logger.info("cancelled connection to core device moninj")
break
except:
logger.error("failed to connect to core device moninj", exc_info=True)
await asyncio.sleep(10.)