Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/element-master' into j94/telegra…
Browse files Browse the repository at this point in the history
…m-readiness
  • Loading branch information
Christian Paul committed Dec 3, 2021
2 parents f5cc32d + 451fff4 commit fd29fea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mautrix_telegram/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ class TelegramBridge(Bridge):

latest_telegram_update_timestamp: float

as_connection_metric_task: asyncio.Task = None

def prepare_db(self) -> None:
super().prepare_db()
init_db(self.db)
Expand Down Expand Up @@ -156,6 +158,8 @@ async def resend_bridge_info(self) -> None:
def prepare_stop(self) -> None:
if self.periodic_sync_task:
self.periodic_sync_task.cancel()
if self.as_connection_metric_task:
self.as_connection_metric_task.cancel()
if self.as_bridge_liveness_task:
self.as_bridge_liveness_task.cancel()
for puppet in Puppet.by_custom_mxid.values():
Expand Down

0 comments on commit fd29fea

Please sign in to comment.