reconnect correctly when you were conencted with plain connection. Fixes #4390

This commit is contained in:
Yann Leboulanger 2008-10-10 18:03:25 +00:00
parent 1d86a11bf7
commit 9262133315
1 changed files with 4 additions and 1 deletions

View File

@ -577,6 +577,9 @@ class Connection(ConnectionHandlers):
if len(self._hosts):
# No config option exist when creating a new account
if self.last_connection_type:
if self.last_connection_type == 'tcp':
self._connection_types = ['plain']
else:
self._connection_types = [self.last_connection_type]
elif self.name in gajim.config.get_per('accounts'):
self._connection_types = gajim.config.get_per('accounts', self.name,