Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-10-10 22:03:25 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-10-10 22:03:25 +0400
commit9262133315acefcc7950014bf74583180283933e (patch)
tree3b505659159ed2d21be25057bea3f2320135fa1b /src
parent1d86a11bf78c8393d0a3def1968f2442bea9a68e (diff)
reconnect correctly when you were conencted with plain connection. Fixes #4390
Diffstat (limited to 'src')
-rw-r--r--src/common/connection.py5
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()