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) future.get(PING_TIMEOUT_MS, TimeUnit.MILLISECONDS); // mirrors setSoTimeout(5000)
} catch (TimeoutException e) { } catch (TimeoutException e) {
future.cancel(true); future.cancel(true);
System.out.println("RMI ping timeout: " + username); //error sending
disconnect(); disconnect();
} catch (Exception e) { } catch (Exception e) {
disconnect(); disconnect();
@@ -362,6 +362,7 @@ public class LeaderboardFXMLController {
// ==== ACTIONS ==== // ==== ACTIONS ====
@FXML @FXML
private void onNewGame() { private void onNewGame() {
controller.disconnect();
primaryStage.setScene(loginScene); primaryStage.setScene(loginScene);
} }
} }