Skip to content
Snippets Groups Projects
Commit 75505422 authored by nkour's avatar nkour
Browse files

or not and

parent 6ae2a241
No related branches found
No related tags found
No related merge requests found
......@@ -197,7 +197,7 @@ def connect(self,server=None,proxy=None,secure=None):
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
......
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