From 32cc319060365afc3aa2889809b1cf0a6bbdef77 Mon Sep 17 00:00:00 2001 From: VladiMihaylenko Date: Wed, 9 Jan 2019 14:54:28 +0300 Subject: [PATCH] [routing] Correct routing error when some mwms are absent. --- routing/async_router.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routing/async_router.cpp b/routing/async_router.cpp index 5ca7e1d7b1..2d9736a31e 100644 --- a/routing/async_router.cpp +++ b/routing/async_router.cpp @@ -425,9 +425,9 @@ void AsyncRouter::CalculateRoute() vector absent; if (absentFetcher && needFetchAbsent) absentFetcher->GetAbsentCountries(absent); - absent.insert(absent.end(), route->GetAbsentCountries().cbegin(), route->GetAbsentCountries().cend()); - if (!absent.empty() && code == RouterResultCode::NoError) + absent.insert(absent.end(), route->GetAbsentCountries().cbegin(), route->GetAbsentCountries().cend()); + if (!absent.empty()) code = RouterResultCode::NeedMoreMaps; elapsedSec = timer.ElapsedSeconds(); // routing time + absents fetch time