Use recon set on stack closing during reconnect
Hopefully resolves https://github.com/pikers/piker/issues/434samplerd_service
parent
1c5141f4c6
commit
b0a6dd46e4
|
@ -92,7 +92,7 @@ class NoBsWs:
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
await self._stack.aclose()
|
await self._stack.aclose()
|
||||||
except (DisconnectionTimeout, RuntimeError):
|
except self.recon_errors:
|
||||||
await trio.sleep(0.5)
|
await trio.sleep(0.5)
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue