diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2008-10-10 22:03:25 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2008-10-10 22:03:25 +0400 |
commit | 9262133315acefcc7950014bf74583180283933e (patch) | |
tree | 3b505659159ed2d21be25057bea3f2320135fa1b /src | |
parent | 1d86a11bf78c8393d0a3def1968f2442bea9a68e (diff) |
reconnect correctly when you were conencted with plain connection. Fixes #4390
Diffstat (limited to 'src')
-rw-r--r-- | src/common/connection.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/connection.py b/src/common/connection.py index 20e1fe491..4218f7c9a 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -577,7 +577,10 @@ class Connection(ConnectionHandlers): if len(self._hosts): # No config option exist when creating a new account if self.last_connection_type: - self._connection_types = [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, 'connection_types').split() |