summaryrefslogtreecommitdiff
path: root/sleekxmpp/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/__init__.py')
-rw-r--r--sleekxmpp/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/__init__.py b/sleekxmpp/__init__.py
index c788313d..773f7936 100644
--- a/sleekxmpp/__init__.py
+++ b/sleekxmpp/__init__.py
@@ -229,7 +229,8 @@ class ClientXMPP(basexmpp, XMLStream):
def handler_start_session(self, xml):
if self.authenticated:
- response = self.send(self.makeIqSet(xml), self.makeIq(self.getId()))
+ iq = self.makeIqSet(xml)
+ response = iq.send()
logging.debug("Established Session")
self.sessionstarted = True
self.event("session_start")