Skip to content

Commit

Permalink
Update mautrix_telegram/abstract_user.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tulir Asokan <tulir@maunium.net>
  • Loading branch information
javiercr and tulir authored May 24, 2024
1 parent 4b25e85 commit 6418202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mautrix_telegram/abstract_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def _schedule_reconnect(self) -> None:
reconnect_interval,
time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(refresh_time)),
)
self.loop.call_later(reconnect_interval, lambda: asyncio.create_task(self._reconnect()))
self.loop.call_later(reconnect_interval, lambda: background_task.create(self._reconnect()))

async def _reconnect(self) -> None:
self.log.info("Reconnecting to Telegram...")
Expand Down

0 comments on commit 6418202

Please sign in to comment.