summaryrefslogtreecommitdiff
path: root/slixmpp/componentxmpp.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-02-12 12:11:50 +0100
committermathieui <mathieui@mathieui.net>2015-02-12 12:11:50 +0100
commit8b36e918e897a55622c279507a7bc886fdfb1081 (patch)
tree453636ba915b0ca72f9b0997e82725998cb4137a /slixmpp/componentxmpp.py
parent957c635fb7877cc711cdabfcf8d3e6a41792c7cf (diff)
downloadslixmpp-8b36e918e897a55622c279507a7bc886fdfb1081.tar.gz
slixmpp-8b36e918e897a55622c279507a7bc886fdfb1081.tar.bz2
slixmpp-8b36e918e897a55622c279507a7bc886fdfb1081.tar.xz
slixmpp-8b36e918e897a55622c279507a7bc886fdfb1081.zip
Fix the componentxmpp interface
Diffstat (limited to 'slixmpp/componentxmpp.py')
-rw-r--r--slixmpp/componentxmpp.py6
1 files changed, 4 insertions, 2 deletions
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 = "<stream:stream %s %s to='%s'>" % (
+ self.stream_header = '<stream:stream %s %s to="%s">' % (
'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')