merge dev into test #30
@@ -108,8 +108,9 @@ private void tryHost() {
|
|||||||
} catch (InterruptedException ignored) {
|
} catch (InterruptedException ignored) {
|
||||||
}
|
}
|
||||||
hostDialog.connectServerAsClient();
|
hostDialog.connectServerAsClient();
|
||||||
while (hostDialog.getNetwork().isConnected()){
|
try {
|
||||||
int i = 2;
|
Thread.sleep(1000);
|
||||||
|
} catch (InterruptedException ignored) {
|
||||||
}
|
}
|
||||||
app.getModelSynchronize().setHost(port);
|
app.getModelSynchronize().setHost(port);
|
||||||
//app.getAcousticHandler().playSound(MdgaSound.WRONG_INPUT);
|
//app.getAcousticHandler().playSound(MdgaSound.WRONG_INPUT);
|
||||||
@@ -139,8 +140,9 @@ private void tryJoin() {
|
|||||||
app.getModelSynchronize().setName(startDialog.getName());
|
app.getModelSynchronize().setName(startDialog.getName());
|
||||||
joinDialog.setHostname(ip);
|
joinDialog.setHostname(ip);
|
||||||
joinDialog.connectToServer();
|
joinDialog.connectToServer();
|
||||||
while (!joinDialog.getNetwork().isConnected()){
|
try {
|
||||||
int i = 2;
|
Thread.sleep(1000);
|
||||||
|
} catch (InterruptedException ignored) {
|
||||||
}
|
}
|
||||||
app.getModelSynchronize().setJoin(ip, port);
|
app.getModelSynchronize().setJoin(ip, port);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user