Fix #15: Option to shutdown at the end of frame (standalone client)

This commit is contained in:
Thomas Laroche
2015-08-05 19:58:11 +01:00
committed by Laurent Clouet
parent 7f475348fc
commit 2560a2d4d2
3 changed files with 39 additions and 2 deletions

View File

@@ -306,6 +306,7 @@ public class Client {
return -99; // the this.stop will be done after the return of this.run()
}
this.gui.stop();
return 0;
}
@@ -342,7 +343,6 @@ public class Client {
this.server = null;
this.gui.stop();
return 0;
}
@@ -363,6 +363,15 @@ public class Client {
System.out.println("Client::askForStop");
this.running = false;
}
public void cancelStop() {
System.out.println("Client::cancelStop");
this.running = true;
}
public boolean isRunning() {
return this.running;
}
public int senderLoop() {
int step = log.newCheckPoint();