From 98f5269ab26cc0702673d513cfb3ccbbd11a148f Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Thu, 15 Dec 2016 16:57:29 +0300 Subject: Preventing cyclical calling of building route in case of some errors. --- routing/car_router.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/routing/car_router.cpp b/routing/car_router.cpp index 0e8c013a70..1f4cd434e4 100644 --- a/routing/car_router.cpp +++ b/routing/car_router.cpp @@ -282,7 +282,18 @@ bool CarRouter::FindRouteMSMT(TFeatureGraphNodeVec const & sources, { case NoError: return true; case Cancelled: return false; - default: continue; + case NoCurrentPosition: + LOG(LERROR, ("NoCurrentPosition routing result returned by FindSingleRouteDispatcher()")); + return false; + case InconsistentMWMandRoute: return false; + case RouteFileNotExist: return false; + case StartPointNotFound: continue; + case EndPointNotFound: continue; + case PointsInDifferentMWM: return false; + case RouteNotFound: continue; + case NeedMoreMaps: return false; + case InternalError: return false; + case FileTooOld: return false; } } } -- cgit v1.2.3