Fix #15: Option to shutdown at the end of frame (standalone client)
This commit is contained in:
committed by
Laurent Clouet
parent
7f475348fc
commit
2560a2d4d2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user