Code formating

This commit is contained in:
Laurent Clouet
2017-01-05 09:35:59 +01:00
parent 52e5f190c7
commit 2f00d7816d
12 changed files with 27 additions and 28 deletions

View File

@@ -31,9 +31,9 @@ public class GuiText implements Gui {
public static final String type = "text";
private int framesRendered;
private int sigIntCount = 0;
private Log log;
private Client client;
@@ -46,12 +46,12 @@ public class GuiText implements Gui {
@Override
public void start() {
if (client != null) {
Signal.handle(new Signal("INT"), new SignalHandler() {
@Override
public void handle(Signal signal) {
sigIntCount++;
if (sigIntCount == 4) {
// This is only for ugly issues that might occur
System.out.println("WARNING: Hitting Ctrl-C again will force close the application.");
@@ -70,7 +70,7 @@ public class GuiText implements Gui {
}
}
});
client.run();
client.stop();
}