This commit is contained in:
Stephan Richter
2020-11-12 16:52:51 +01:00
parent 917b1107d9
commit 64435ef68b
7 changed files with 10 additions and 8 deletions

View File

@@ -89,7 +89,6 @@ public class Train extends BaseClass implements Comparable<Train> {
stop = false;
while (true) {
if (isNull(route)) {
LOG.debug("Waiting {} secs...",waitTime/1000d);
Thread.sleep(waitTime);
if (waitTime > 100) waitTime /=2;
if (stop) return;
@@ -587,6 +586,8 @@ public class Train extends BaseClass implements Comparable<Train> {
public void setWaitTime(Range waitTime) {
if (autopilot != null) autopilot.waitTime = waitTime.random();
LOG.debug("{} waiting {} secs...",this,autopilot.waitTime/1000d);
}
public void showTrace() {