always define ssl_context
This commit is contained in:
parent
1994ed3025
commit
4dfdd5d8e3
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue