From 06358d0665ee68962acef6936e063f4baadc1930 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 22 Feb 2015 20:13:48 +0100 Subject: Use CallbackCoroutine with Iq callbacks too --- slixmpp/xmlstream/xmlstream.py | 1 + 1 file changed, 1 insertion(+) (limited to 'slixmpp/xmlstream') diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 573ca829..959169d1 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -489,6 +489,7 @@ class XMLStream(asyncio.BaseProtocol): ssl_connect_routine = loop.create_connection(lambda: self, ssl=self.ssl_context, sock=self.socket, server_hostname=self.address[0]) + @asyncio.coroutine def ssl_coro(): try: transp, prot = yield from ssl_connect_routine -- cgit v1.2.3