Use variable instead of hardcoded value

This commit is contained in:
Laurent Clouet
2016-01-15 10:05:32 +01:00
parent caba4cb1d1
commit 6510bbdbc7

View File

@@ -209,7 +209,7 @@ public class Client {
catch (FermeServerDown e) {
int wait = 15;
int time_sleep = 1000 * 60 * wait;
this.gui.status(String.format("Can not connect to server. Please check your connectivity. Will retry in %s minutes", 15));
this.gui.status(String.format("Can not connect to server. Please check your connectivity. Will retry in %s minutes", wait));
try {
Thread.sleep(time_sleep);
}