summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Ertl <mati@er.tl>2017-05-05 17:16:01 +0200
committerlouiz’ <louiz@louiz.org>2017-05-24 13:18:22 +0200
commit4dfdd5d8e3a7798b1ff8547bcdeceaff2fc3405a (patch)
treec5f991cb6f64e4eb3e1c019de327d37e07e51228
parent1994ed3025870d3c1ada58dd9d8fcec6e14e88e5 (diff)
downloadslixmpp-4dfdd5d8e3a7798b1ff8547bcdeceaff2fc3405a.tar.gz
slixmpp-4dfdd5d8e3a7798b1ff8547bcdeceaff2fc3405a.tar.bz2
slixmpp-4dfdd5d8e3a7798b1ff8547bcdeceaff2fc3405a.tar.xz
slixmpp-4dfdd5d8e3a7798b1ff8547bcdeceaff2fc3405a.zip
always define ssl_context
-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: