Skip to content
Snippets Groups Projects
Unverified Commit 71063a69 authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Fix missing logcontext for PresenceHandler.on_shutdown. (#5369)

Fixes some warnings, and a scary-looking stacktrace when sytest kills the
process.
parent 89d3d7b2
No related branches found
No related tags found
No related merge requests found
Fix missing logcontext warnings on shutdown.
...@@ -158,7 +158,13 @@ class PresenceHandler(object): ...@@ -158,7 +158,13 @@ class PresenceHandler(object):
# have not yet been persisted # have not yet been persisted
self.unpersisted_users_changes = set() self.unpersisted_users_changes = set()
hs.get_reactor().addSystemEventTrigger("before", "shutdown", self._on_shutdown) hs.get_reactor().addSystemEventTrigger(
"before",
"shutdown",
run_as_background_process,
"presence.on_shutdown",
self._on_shutdown,
)
self.serial_to_user = {} self.serial_to_user = {}
self._next_serial = 1 self._next_serial = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment