forked from M-Labs/artiq
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()
|
await self._reconnect_event.wait()
|
||||||
self._reconnect_event.clear()
|
self._reconnect_event.clear()
|
||||||
try:
|
try:
|
||||||
await self.reconnect_cr()
|
await asyncio.wait_for(self.reconnect_cr(), timeout=5)
|
||||||
|
except asyncio.CancelledError:
|
||||||
|
raise
|
||||||
except:
|
except:
|
||||||
await asyncio.sleep(5)
|
await asyncio.sleep(5)
|
||||||
self._reconnect_event.set()
|
self._reconnect_event.set()
|
||||||
|
Loading…
Reference in New Issue
Block a user