mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 20:07:37 -02:30
Merge pull request #3024 from ryanpetrello/ldap-gc-deadlock
fix a deadlock when Python garbage collects LDAPBackend objects Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -69,9 +69,6 @@ class LDAPBackend(BaseLDAPBackend):
|
|||||||
super(LDAPBackend, self).__init__(*args, **kwargs)
|
super(LDAPBackend, self).__init__(*args, **kwargs)
|
||||||
setting_changed.connect(self._on_setting_changed, dispatch_uid=self._dispatch_uid)
|
setting_changed.connect(self._on_setting_changed, dispatch_uid=self._dispatch_uid)
|
||||||
|
|
||||||
def __del__(self):
|
|
||||||
setting_changed.disconnect(dispatch_uid=self._dispatch_uid)
|
|
||||||
|
|
||||||
def _on_setting_changed(self, sender, **kwargs):
|
def _on_setting_changed(self, sender, **kwargs):
|
||||||
# If any AUTH_LDAP_* setting changes, force settings to be reloaded for
|
# If any AUTH_LDAP_* setting changes, force settings to be reloaded for
|
||||||
# this backend instance.
|
# this backend instance.
|
||||||
|
|||||||
Reference in New Issue
Block a user