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