handle see-other-host at different state of connection (after authentication). Fixes #7179

This commit is contained in:
Yann Leboulanger 2012-08-10 10:43:02 +02:00
parent f1a75255b4
commit 8d5ddb2d16
1 changed files with 6 additions and 1 deletions

View File

@ -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