Preserve websocket reconnect failure retries

This commit is contained in:
Mark Backman
2026-05-20 14:45:29 -04:00
parent e298491068
commit 9586db5b50
2 changed files with 16 additions and 1 deletions

View File

@@ -76,7 +76,9 @@ class WebsocketService(ABC):
logger.warning(f"{self} reconnecting (attempt: {attempt_number})")
await self._disconnect_websocket()
await self._connect_websocket()
return await self._verify_connection()
if not await self._verify_connection():
raise ConnectionError(f"{self} websocket reconnection failed verification")
return True
async def _try_reconnect(
self,