From 8b36e918e897a55622c279507a7bc886fdfb1081 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 12 Feb 2015 12:11:50 +0100 Subject: Fix the componentxmpp interface --- slixmpp/componentxmpp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'slixmpp/componentxmpp.py') diff --git a/slixmpp/componentxmpp.py b/slixmpp/componentxmpp.py index b00e084e..b4e4f52c 100644 --- a/slixmpp/componentxmpp.py +++ b/slixmpp/componentxmpp.py @@ -55,7 +55,7 @@ class ComponentXMPP(BaseXMPP): BaseXMPP.__init__(self, jid, default_ns) self.auto_authorize = None - self.stream_header = "" % ( + self.stream_header = '' % ( 'xmlns="jabber:component:accept"', 'xmlns:stream="%s"' % self.stream_ns, jid) @@ -68,6 +68,8 @@ class ComponentXMPP(BaseXMPP): self.plugin_whitelist = plugin_whitelist self.is_component = True + self.sessionstarted = False + self.register_handler( Callback('Handshake', MatchXPath('{jabber:component:accept}handshake'), @@ -145,7 +147,7 @@ class ComponentXMPP(BaseXMPP): :param xml: The reply handshake stanza. """ self.session_bind_event.set() - self.session_started_event.set() + self.sessionstarted = True self.event('session_bind', self.boundjid) self.event('session_start') -- cgit v1.2.3