This is the code I havecheckUser = false; loginMessage2 = "Error connecting to server."; try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } checkUser = true;
What I want to do is add a delay between boolean changes, without the whole client freezing up
Any help would be appreciated