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 c1e3a66 commit cedf2aaCopy full SHA for cedf2aa
mautrix/bridge/bridge.py
@@ -8,6 +8,7 @@
8
from typing import Any
9
from abc import ABC, abstractmethod
10
from enum import Enum
11
+import asyncio
12
import sys
13
14
from aiohttp import web
@@ -258,7 +259,8 @@ async def start(self) -> None:
258
259
status_endpoint = self.config["homeserver.status_endpoint"]
260
if status_endpoint and await self.count_logged_in_users() == 0:
261
state = BridgeState(state_event=BridgeStateEvent.UNCONFIGURED).fill()
- await state.send(status_endpoint, self.az.as_token, self.log)
262
+ while not await state.send(status_endpoint, self.az.as_token, self.log):
263
+ await asyncio.sleep(5)
264
265
async def system_exit(self) -> None:
266
if hasattr(self, "db") and isinstance(self.db, Database):
0 commit comments