Allow exit after frame for text and oneLine mode

This commit is contained in:
Timo Schwarzer
2016-01-27 13:41:11 +01:00
committed by Laurent Clouet
parent 6510bbdbc7
commit e703b9ea1b
3 changed files with 62 additions and 1 deletions

View File

@@ -233,6 +233,7 @@ public class Client {
Date wakeup_time = new Date(new Date().getTime() + time_sleep);
this.gui.status(String.format("No job available. Sleeping for 15 minutes (will wake up at ~%tR)", wakeup_time));
this.gui.framesRemaining(0);
this.suspended = true;
int time_slept = 0;
while (time_slept < time_sleep && this.running == true) {
try {
@@ -243,6 +244,7 @@ public class Client {
}
time_slept += 5000;
}
this.suspended = false;
continue; // go back to ask job
}
@@ -342,6 +344,8 @@ public class Client {
}
this.server = null;
this.gui.stop();
return 0;
}