From f3522eb84bbc553b989bd62f62e3e9255fe6b862 Mon Sep 17 00:00:00 2001 From: nicoco Date: Thu, 11 May 2023 21:06:11 +0200 Subject: [PATCH] ComponentXMPP: fix fix_error_ns option self.default_ns is defined in BaseXMPP.__init__(), so ComponentXMPP._fix_error_ns() has to be called later --- slixmpp/componentxmpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp/componentxmpp.py b/slixmpp/componentxmpp.py index 6e0193ac..2ef6ea45 100644 --- a/slixmpp/componentxmpp.py +++ b/slixmpp/componentxmpp.py @@ -61,9 +61,9 @@ class ComponentXMPP(BaseXMPP): default_ns = 'jabber:client' else: default_ns = 'jabber:component:accept' + BaseXMPP.__init__(self, jid, default_ns) if fix_error_ns: self._fix_error_ns() - BaseXMPP.__init__(self, jid, default_ns) self.auto_authorize = None self.stream_header = '' % (