bugfix
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>de.srsoftware</groupId>
|
<groupId>de.srsoftware</groupId>
|
||||||
<artifactId>web4rail</artifactId>
|
<artifactId>web4rail</artifactId>
|
||||||
<version>1.1.2</version>
|
<version>1.1.3</version>
|
||||||
<name>Web4Rail</name>
|
<name>Web4Rail</name>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<description>Java Model Railway Control</description>
|
<description>Java Model Railway Control</description>
|
||||||
|
|||||||
@@ -96,8 +96,10 @@ public class Train extends BaseClass implements Comparable<Train> {
|
|||||||
Thread.sleep(waitTime);
|
Thread.sleep(waitTime);
|
||||||
if (waitTime > 100) waitTime /=2;
|
if (waitTime > 100) waitTime /=2;
|
||||||
if (stop) return;
|
if (stop) return;
|
||||||
Train.this.start();
|
if (isNull(route)) { // may have been set by start action in between
|
||||||
if (isSet(destination)) Thread.sleep(1000); // limit load on PathFinder
|
Train.this.start();
|
||||||
|
if (isSet(destination)) Thread.sleep(1000); // limit load on PathFinder
|
||||||
|
}
|
||||||
} else Thread.sleep(250);
|
} else Thread.sleep(250);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user