Fixed: newGame(on standing scene)

This commit is contained in:
rubenpirreram
2026-05-26 11:14:06 +02:00
parent 22c4c6cc0f
commit d79dd66ce9
2 changed files with 2 additions and 1 deletions
@@ -107,7 +107,7 @@ public class RMIClient implements IClient {
future.get(PING_TIMEOUT_MS, TimeUnit.MILLISECONDS); // mirrors setSoTimeout(5000)
} catch (TimeoutException e) {
future.cancel(true);
System.out.println("RMI ping timeout: " + username);
//error sending
disconnect();
} catch (Exception e) {
disconnect();
@@ -362,6 +362,7 @@ public class LeaderboardFXMLController {
// ==== ACTIONS ====
@FXML
private void onNewGame() {
controller.disconnect();
primaryStage.setScene(loginScene);
}
}