Use recon set on stack closing during reconnect

Hopefully resolves https://github.com/pikers/piker/issues/434
samplerd_service
Tyler Goodlet 2022-12-20 14:44:06 -05:00
parent 1c5141f4c6
commit b0a6dd46e4
1 changed files with 1 additions and 1 deletions

View File

@ -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