log.info("Replacing client: " + clientId + " on transport: " + existingClient.getChannel() + " ("
+ ex.getMessage() + ") with client on transport: " + client.getChannel());
// @TODO: Not sure this is the proper way to close the existing client
existingClient.cleanUp();
existingClient.stop();
}
}
getBroker().addClient(client, info);
log.info("Adding new client: " + clientId + " on transport: " + client.getChannel());