Skip to content

Commit 585e7f8

Browse files
committed
alternative route algo should consider timeout too
1 parent 377c9b4 commit 585e7f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/java/com/graphhopper/routing/AlternativeRoute.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ public List<AlternativeInfo> calcAlternatives(int from, int to) {
132132

133133
@Override
134134
public List<Path> calcPaths(int from, int to) {
135+
checkAlreadyRun();
136+
setupFinishTime();
135137
List<AlternativeInfo> alternatives = calcAlternatives(from, to);
136138
List<Path> paths = new ArrayList<>(alternatives.size());
137139
for (AlternativeInfo a : alternatives) {

0 commit comments

Comments
 (0)