From c3ef6cfbbc2b3a093f4975ee422e9a13579bfbf3 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Mon, 6 Feb 2006 10:00:23 +0000 Subject: [PATCH] I'm losing the logic of this condition, but this is a copy of the original, so it should work --- src/common/xmpp/client_nb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/xmpp/client_nb.py b/src/common/xmpp/client_nb.py index c3d0bfc33..49ada42e6 100644 --- a/src/common/xmpp/client_nb.py +++ b/src/common/xmpp/client_nb.py @@ -131,7 +131,7 @@ class NBCommonClient(CommonClient): def _on_connected(self): self.connected = 'tcp' - if self._Ssl or self.Connection.getPort() in (5223, 443): + if self._Ssl is None or self.Connection.getPort() in (5223, 443) or self._Ssl: try: transports_nb.NonBlockingTLS().PlugIn(self, now=1) self.connected = 'ssl'