fixed a bug

This commit is contained in:
Fleischer Hanno
2024-12-01 23:57:39 +01:00
parent 9a06afe998
commit 00a04c2403

View File

@@ -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;