Fix: output
This commit is contained in:
@@ -28,21 +28,20 @@ public class ClientLauncherTUI {
|
||||
if (networkType == 0) {
|
||||
RMIClient client = new RMIClient("localhost", 1099);
|
||||
if (client.connect(username, proposedNumPlayers, controller)) {
|
||||
System.out.println("CLIENT CONNESSO DAJE");
|
||||
System.out.println("Succesfully connected to RMI server\n\n");
|
||||
} else {
|
||||
System.out.println("NON CONNESSO D:");
|
||||
System.out.println("RMI connection refused\n\n");
|
||||
}
|
||||
|
||||
while(true) {
|
||||
System.out.flush();
|
||||
if (controller.localModel!=null) {
|
||||
System.out.println("MODEL SETTATO");
|
||||
break;
|
||||
}
|
||||
Thread.sleep(500);
|
||||
}
|
||||
|
||||
|
||||
|
||||
System.out.println("Model set\n\n");
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user