Code formating
This commit is contained in:
@@ -34,10 +34,10 @@ public class GuiTextOneLine implements Gui {
|
||||
private int remaining;
|
||||
private String creditsEarned;
|
||||
private int sigIntCount = 0;
|
||||
|
||||
|
||||
private String status;
|
||||
private String line;
|
||||
|
||||
|
||||
private boolean exiting = false;
|
||||
|
||||
private Client client;
|
||||
@@ -54,12 +54,12 @@ public class GuiTextOneLine 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 == 5) {
|
||||
Signal.raise(new Signal("INT"));
|
||||
Runtime.getRuntime().halt(0);
|
||||
@@ -74,7 +74,7 @@ public class GuiTextOneLine implements Gui {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
client.run();
|
||||
client.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user