Fixed: newGame(on standing scene)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user