We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d90a2e commit 7b6c727Copy full SHA for 7b6c727
mautrix/bridge/matrix.py
@@ -221,19 +221,13 @@ async def check_versions(self) -> None:
221
222
async def wait_for_connection(self) -> None:
223
self.log.info("Ensuring connectivity to homeserver")
224
- errors = 0
225
while True:
226
try:
227
self.versions = await self.az.intent.versions()
228
break
229
except Exception:
230
- errors += 1
231
- if errors <= 6:
232
- self.log.exception("Connection to homeserver failed, retrying in 10 seconds")
233
- await asyncio.sleep(10)
234
- continue
235
- else:
236
- raise
+ self.log.exception("Connection to homeserver failed, retrying in 10 seconds")
+ await asyncio.sleep(10)
237
await self.check_versions()
238
239
await self.az.intent.whoami()
0 commit comments