int port = msg.getInt();
logger.log(Level.FINER, "Login redirect: {0}:{1}", host, port);
// Disconnect our current connection, and connect to the
// new host and port
ClientConnection oldConnection = clientConnection;
synchronized (SimpleClient.this) {
clientConnection = null;
connectionStateChanging = true;
}
try {
oldConnection.disconnect();
} catch (IOException e) {
// ignore
if (logger.isLoggable(Level.FINE)) {
logger.logThrow(Level.FINE, e,
"Disconnecting after login redirect " +