added missing argument to NBCommonClient call

This commit is contained in:
Dimitur Kirov 2006-02-06 11:28:05 +00:00
parent c3ef6cfbbc
commit d6fee1ea49
1 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ class NBCommonClient(CommonClient):
def _on_connected(self): def _on_connected(self):
self.connected = 'tcp' 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: try:
transports_nb.NonBlockingTLS().PlugIn(self, now=1) transports_nb.NonBlockingTLS().PlugIn(self, now=1)
self.connected = 'ssl' self.connected = 'ssl'
@ -181,7 +181,7 @@ class NonBlockingClient(NBCommonClient):
Returns '' or 'tcp' or 'tls', depending on the result.''' Returns '' or 'tcp' or 'tls', depending on the result.'''
self.__secure = secure self.__secure = secure
self.Connection = None 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) on_stream_start = self._on_tcp_stream_start)
return self.connected return self.connected