Fixed bug where server could connect to an expired server

- Increased update interval

Tags: #story[1281]
This commit is contained in:
Michael Rausch
2017-09-28 15:00:00 +13:00
parent 3345734efd
commit 80c26a9e4a
7 changed files with 25 additions and 13 deletions
@@ -180,10 +180,12 @@ public class ClientToServerThread implements Runnable {
notifyDisconnectListeners("Connection to server was terminated");
closeSocket();
Platform.runLater(() -> {
ViewManager.getInstance().showErrorSnackBar("Server rejected connection.");
ViewManager.getInstance().goToStartView();
});
//thread.interrupt();
// Platform.runLater(() -> {
// ViewManager.getInstance().showErrorSnackBar("Server rejected connection.");
// ViewManager.getInstance().goToStartView();
// });
}
public void sendCustomizationRequest(CustomizeRequestType reqType, byte[] payload) {