public LoLRTMPSClient doInBackground() throws Exception {
this.publish("Connecting to the login server...");
String username = LoginController.this.view.usernameField.getText();
String password = new String(LoginController.this.view.passwordField.getPassword());
LoLRTMPSClient client = new LoLRTMPSClient(regionsModel.getSelectedRegion(), Configuration.PVPVersion, username, password);
client.connect();
this.publish("Logging in...");
client.login();
this.publish("Sucessfully logged in!");
return client;
}