From 8d5ddb2d16625385e88d56272092af2678f124fb Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Fri, 10 Aug 2012 10:43:02 +0200 Subject: [PATCH] handle see-other-host at different state of connection (after authentication). Fixes #7179 --- src/common/connection.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/common/connection.py b/src/common/connection.py index 04f3c625af..654f746771 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -850,7 +850,12 @@ class Connection(CommonConnection, ConnectionHandlers): # show error dialog self._connection_lost() else: - self.disconnect() + if self.redirected: + self.disconnect(on_purpose=True) + self.connect() + return + else: + self.disconnect() self.on_purpose = False # END disconnectedReconnCB -- GitLab