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

Commit 2a3ec6f

Browse files
author
David Robertson
authored
Correctly register shutdown handler for presence workers (#11518)
Fixes #11517
1 parent eccc49d commit 2a3ec6f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: changelog.d/11518.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a regression in Synapse 1.48.0 where presence workers would not clear their presence updates over replication on shutdown.

Diff for: synapse/handlers/presence.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def __init__(self, hs: "HomeServer"):
421421
self._on_shutdown,
422422
)
423423

424-
def _on_shutdown(self) -> None:
424+
async def _on_shutdown(self) -> None:
425425
if self._presence_enabled:
426426
self.hs.get_tcp_replication().send_command(
427427
ClearUserSyncsCommand(self.instance_id)

0 commit comments

Comments
 (0)