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

Commit

Permalink
Merge pull request #4486 from xperimental/workaround-4216
Browse files Browse the repository at this point in the history
Implement workaround for login error.
  • Loading branch information
richvdh authored Jan 30, 2019
2 parents 47d03a7 + 2a7f0b8 commit 457fbfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/4486.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Workaround for login error when using both LDAP and internal authentication.
5 changes: 4 additions & 1 deletion synapse/util/logcontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ def __exit__(self, type, value, traceback):
self.alive = False

# if we have a parent, pass our CPU usage stats on
if self.parent_context is not None:
if (
self.parent_context is not None
and hasattr(self.parent_context, '_resource_usage')
):
self.parent_context._resource_usage += self._resource_usage

# reset them in case we get entered again
Expand Down

0 comments on commit 457fbfa

Please sign in to comment.