2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

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 Sebastien Bourdeauducq
parent 94271504dd
commit 3b2c225fc4

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.)