Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Correctly register shutdown handler for presence workers
Browse files Browse the repository at this point in the history
Fixes #11517
  • Loading branch information
David Robertson committed Dec 6, 2021
1 parent 5640992 commit 888925b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/handlers/presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def __init__(self, hs: "HomeServer"):
self._on_shutdown,
)

def _on_shutdown(self) -> None:
async def _on_shutdown(self) -> None:
if self._presence_enabled:
self.hs.get_tcp_replication().send_command(
ClearUserSyncsCommand(self.instance_id)
Expand Down

0 comments on commit 888925b

Please sign in to comment.