fix anonymous login when server has a SSL error. Fixes #7121

This commit is contained in:
Yann Leboulanger 2012-03-16 23:09:00 +01:00
parent 8700389d98
commit 5b39679919
1 changed files with 4 additions and 1 deletions

View File

@ -1333,6 +1333,9 @@ class Connection(CommonConnection, ConnectionHandlers):
msg=_('Connection with account %s has been lost. Retry '
'connecting.') % self.name))
return
if gajim.config.get_per('accounts', self.name, 'anonymous_auth'):
name = None
else:
name = gajim.config.get_per('accounts', self.name, 'name')
self._register_handlers(self.connection, 'ssl')
self.connection.auth(name, self.password, self.server_resource, 1,