ComponentXMPP: fix fix_error_ns option

self.default_ns is defined in BaseXMPP.__init__(),
so ComponentXMPP._fix_error_ns() has to be called
later
This commit is contained in:
nicoco 2023-05-11 21:06:11 +02:00
parent 6d6fdc6419
commit f3522eb84b

View file

@ -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 = '<stream:stream %s %s to="%s">' % (