reverted the client state machine
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user