Use recon set on stack closing during reconnect
Hopefully resolves https://github.com/pikers/piker/issues/434epoch_index_backup
parent
4b5b4f96a9
commit
aaf8754776
|
@ -75,7 +75,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