reverted the client state machine

This commit is contained in:
Fleischer Hanno
2024-12-01 22:47:13 +01:00
parent eaf46f3e14
commit 76e2606847
41 changed files with 1779 additions and 15 deletions

View File

@@ -139,10 +139,14 @@ private void tryJoin() {
joinDialog.setPortNumber(port);
// Validate the IP address
if (isValidIpAddress(ip)) {
joinDialog.setHostname(ip);
app.getModelSynchronize().setName(startDialog.getName());
app.getModelSynchronize().setJoin(ip, port);
joinDialog.setHostname(ip);
joinDialog.connectToServer();
try {
Thread.sleep(1000);
} catch (InterruptedException ignored) {
}
app.getModelSynchronize().setJoin(ip, port);
return;
}
} catch (IllegalArgumentException e) {