Use recon set on stack closing during reconnect

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

View File

@ -75,7 +75,7 @@ class NoBsWs:
while True:
try:
await self._stack.aclose()
except (DisconnectionTimeout, RuntimeError):
except self.recon_errors:
await trio.sleep(0.5)
else:
break