always define ssl_context

This commit is contained in:
Mathias Ertl 2017-05-05 17:16:01 +02:00 committed by louiz’
parent 1994ed3025
commit 4dfdd5d8e3

View file

@ -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: