Implement workaround for login error.

Signed-off-by: Robert Jacob <xperimental@solidproject.de>
This commit is contained in:
Robert Jacob committed 2019-01-30 01:06:39 +01:00
1 parent b6dce9b9fd
commit 2a7f0b8953
2 files changed
+5 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
Workaround for login error when using both LDAP and internal authentication.
+4 -1
View File
@@ -285,7 +285,10 @@ class LoggingContext(object):
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