Skip to content
Snippets Groups Projects
Commit d6fee1ea authored by dkirov's avatar dkirov
Browse files

added missing argument to NBCommonClient call

parent c3ef6cfb
No related branches found
No related tags found
No related merge requests found
......@@ -131,7 +131,7 @@ class NBCommonClient(CommonClient):
def _on_connected(self):
self.connected = 'tcp'
if self._Ssl is None or self.Connection.getPort() in (5223, 443) or self._Ssl:
if (self._Ssl is None and self.Connection.getPort() in (5223, 443)) or self._Ssl:
try:
transports_nb.NonBlockingTLS().PlugIn(self, now=1)
self.connected = 'ssl'
......@@ -181,7 +181,7 @@ class NonBlockingClient(NBCommonClient):
Returns '' or 'tcp' or 'tls', depending on the result.'''
self.__secure = secure
self.Connection = None
NBCommonClient.connect(self, server = server, proxy = proxy,
NBCommonClient.connect(self, server = server, proxy = proxy, ssl = secure,
on_stream_start = self._on_tcp_stream_start)
return self.connected
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment