or not and
This commit is contained in:
parent
6ae2a241f2
commit
75505422b1
|
@ -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
|
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
|
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
|
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'
|
self.connected='tls'
|
||||||
return self.connected
|
return self.connected
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue