mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 19:28:26 +08:00
waveform: add timeout to reconnect_cr
This commit is contained in:
parent
d085c1e4a4
commit
21b77567f2
@ -50,7 +50,9 @@ class _BaseProxyClient:
|
||||
await self._reconnect_event.wait()
|
||||
self._reconnect_event.clear()
|
||||
try:
|
||||
await self.reconnect_cr()
|
||||
await asyncio.wait_for(self.reconnect_cr(), timeout=5)
|
||||
except asyncio.CancelledError:
|
||||
raise
|
||||
except:
|
||||
await asyncio.sleep(5)
|
||||
self._reconnect_event.set()
|
||||
|
Loading…
Reference in New Issue
Block a user