more protection for multiple wpt additions
This commit is contained in:
parent
003cc3df26
commit
05420acc04
1 changed files with 2 additions and 1 deletions
|
|
@ -550,7 +550,7 @@ public class RoutingEngine extends Thread {
|
||||||
try {
|
try {
|
||||||
return tryFindTrack(refTracks, lastTracks);
|
return tryFindTrack(refTracks, lastTracks);
|
||||||
} catch (RoutingIslandException rie) {
|
} catch (RoutingIslandException rie) {
|
||||||
if (routingContext.useDynamicDistance) {
|
if (routingContext.useDynamicDistance && !useNodePoints) {
|
||||||
useNodePoints = true;
|
useNodePoints = true;
|
||||||
boolean useNodeOne = true;
|
boolean useNodeOne = true;
|
||||||
if (extraWaypoints != null) useNodeOne = false;
|
if (extraWaypoints != null) useNodeOne = false;
|
||||||
|
|
@ -590,6 +590,7 @@ public class RoutingEngine extends Thread {
|
||||||
nUnmatched++;
|
nUnmatched++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
extraWaypoints = null;
|
||||||
}
|
}
|
||||||
if (lastTracks.length < waypoints.size()-1) {
|
if (lastTracks.length < waypoints.size()-1) {
|
||||||
refTracks = new OsmTrack[waypoints.size()-1]; // used ways for alternatives
|
refTracks = new OsmTrack[waypoints.size()-1]; // used ways for alternatives
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue