From 97a7585dd0f8b3096ad9e97185f4e3e64c274465 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 16 Nov 2005 21:24:28 +0000 Subject: [PATCH] avoid a tb --- src/common/xmpp/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/xmpp/client.py b/src/common/xmpp/client.py index fe1e7173d..49e6287eb 100644 --- a/src/common/xmpp/client.py +++ b/src/common/xmpp/client.py @@ -197,7 +197,7 @@ class Client(CommonClient): while not self.Dispatcher.Stream.features and self.Process(): pass # If we get version 1.0 stream the features tag MUST BE presented if not self.Dispatcher.Stream.features.getTag('starttls'): return self.connected # TLS not supported by server while not self.TLS.starttls and self.Process(): pass - if self.TLS.starttls<>'success': self.event('tls_failed'); return self.connected + if not hasattr(self, 'TLS') and self.TLS.starttls!='success': self.event('tls_failed'); return self.connected self.connected='tls' return self.connected