summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2021-12-07 12:34:38 +0000
committerGitHub <noreply@github.com>2021-12-07 12:34:38 +0000
commit2a3ec6facf79f6aae011d9fb6f9ed5e43c7b6bec (patch)
tree3f75f87c1282a5ebefd5a02d96ea83af66c8d5d4 /synapse/handlers
parentFix `ModuleApi.looping_background_call` for non-async functions (#11524) (diff)
downloadsynapse-2a3ec6facf79f6aae011d9fb6f9ed5e43c7b6bec.tar.xz
Correctly register shutdown handler for presence workers (#11518)
Fixes #11517
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/presence.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index 3df872c578..454d06c973 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -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)