Correctly register shutdown handler for presence workers (#11518)

Fixes #11517
This commit is contained in:
David Robertson 2021-12-07 12:34:38 +00:00 committed by GitHub
parent eccc49d755
commit 2a3ec6facf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -421,7 +421,7 @@ class WorkerPresenceHandler(BasePresenceHandler):
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)