From 4dfdd5d8e3a7798b1ff8547bcdeceaff2fc3405a Mon Sep 17 00:00:00 2001 From: Mathias Ertl Date: Fri, 5 May 2017 17:16:01 +0200 Subject: always define ssl_context --- slixmpp/xmlstream/xmlstream.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 0f77ae33..a9e62577 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -300,6 +300,8 @@ class XMLStream(asyncio.BaseProtocol): if self.use_ssl: ssl_context = self.get_ssl_context() + else: + ssl_context = None yield from asyncio.sleep(self.connect_loop_wait) try: -- cgit v1.2.3