From 9262133315acefcc7950014bf74583180283933e Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 10 Oct 2008 18:03:25 +0000 Subject: [PATCH] reconnect correctly when you were conencted with plain connection. Fixes #4390 --- src/common/connection.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()