Skip to content

Commit 6418202

Browse files
javiercrtulir
andauthored
Update mautrix_telegram/abstract_user.py
Co-authored-by: Tulir Asokan <[email protected]>
1 parent 4b25e85 commit 6418202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mautrix_telegram/abstract_user.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def _schedule_reconnect(self) -> None:
253253
reconnect_interval,
254254
time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(refresh_time)),
255255
)
256-
self.loop.call_later(reconnect_interval, lambda: asyncio.create_task(self._reconnect()))
256+
self.loop.call_later(reconnect_interval, lambda: background_task.create(self._reconnect()))
257257

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

0 commit comments

Comments
 (0)