Fix double progress

This commit is contained in:
Victor Shcherb 2018-05-29 23:39:12 +02:00
parent 6c2d1e43a3
commit 34ea004ea2

View file

@ -159,7 +159,6 @@ public class RoutePlannerFrontEnd {
if (ctx.calculationMode == RouteCalculationMode.COMPLEX && routeDirection == null
&& maxDistance > ctx.config.DEVIATION_RADIUS * 6) {
ctx.calculationProgress.totalIterations++;
ctx.calculationProgress.iteration++;
RoutingContext nctx = buildRoutingContext(ctx.config, ctx.nativeLib, ctx.getMaps(), RouteCalculationMode.BASE);
nctx.calculationProgress = ctx.calculationProgress;
List<RouteSegmentResult> ls = searchRoute(nctx, start, end, intermediates);