This commit is contained in:
Stephan Richter
2020-11-27 17:53:47 +01:00
parent d89bd4a364
commit fd5968cc0a
2 changed files with 5 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.srsoftware</groupId>
<artifactId>web4rail</artifactId>
<version>1.1.2</version>
<version>1.1.3</version>
<name>Web4Rail</name>
<packaging>jar</packaging>
<description>Java Model Railway Control</description>

View File

@@ -96,8 +96,10 @@ public class Train extends BaseClass implements Comparable<Train> {
Thread.sleep(waitTime);
if (waitTime > 100) waitTime /=2;
if (stop) return;
Train.this.start();
if (isSet(destination)) Thread.sleep(1000); // limit load on PathFinder
if (isNull(route)) { // may have been set by start action in between
Train.this.start();
if (isSet(destination)) Thread.sleep(1000); // limit load on PathFinder
}
} else Thread.sleep(250);
}
} catch (Exception e) {