summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slixmpp/xmlstream/xmlstream.py2
1 files changed, 2 insertions, 0 deletions
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: