Skip to content

Commit

Permalink
Add missing break in connect loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Nov 13, 2023
1 parent 1b2f07d commit ab3cf5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mautrix_telegram/abstract_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ async def start(self, delete_unless_authenticated: bool = False) -> AbstractUser
raise
self.log.exception("Exception connecting to Telegram, retrying in 5s...")
await asyncio.sleep(5)
else:
break
self.log.debug(f"{'Bot' if self.is_relaybot else self.mxid} connected: {self.connected}")
return self

Expand Down

0 comments on commit ab3cf5b

Please sign in to comment.