or not and

This commit is contained in:
Nikos Kouremenos 2005-11-16 21:39:17 +00:00
parent 6ae2a241f2
commit 75505422b1
1 changed files with 1 additions and 1 deletions

View File

@ -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 not hasattr(self, 'TLS') and self.TLS.starttls!='success': self.event('tls_failed'); return self.connected
if not hasattr(self, 'TLS') or self.TLS.starttls!='success': self.event('tls_failed'); return self.connected
self.connected='tls'
return self.connected