reconnect correctly when you were conencted with plain connection. Fixes #4390
This commit is contained in:
parent
1d86a11bf7
commit
9262133315
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue