diff options
author | Erik Johnston <erik@matrix.org> | 2015-05-08 19:53:34 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-05-08 19:53:34 +0100 |
commit | 2236ef6c92b7964665f5c43b941754d70aa506d8 (patch) | |
tree | 5befd0effe712d4c4af6264346769f57c9486060 /synapse/handlers/presence.py | |
parent | Add some docs (diff) | |
download | synapse-2236ef6c92b7964665f5c43b941754d70aa506d8.tar.xz |
Fix up leak. Add warnings.
Diffstat (limited to 'synapse/handlers/presence.py')
-rw-r--r-- | synapse/handlers/presence.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index 6ae39a1d37..1edab05492 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -18,6 +18,7 @@ from twisted.internet import defer from synapse.api.errors import SynapseError, AuthError from synapse.api.constants import PresenceState +from synapse.util.logcontext import PreserveLoggingContext from synapse.util.logutils import log_function from synapse.types import UserID import synapse.metrics @@ -808,10 +809,11 @@ class PresenceHandler(BaseHandler): def push_update_to_clients(self, observed_user, users_to_push=[], room_ids=[], statuscache=None): - self.notifier.on_new_user_event( - users_to_push, - room_ids, - ) + with PreserveLoggingContext(): + self.notifier.on_new_user_event( + users_to_push, + room_ids, + ) class PresenceEventSource(object): |