diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-12-15 16:57:29 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-12-15 19:53:11 +0300 |
commit | 98f5269ab26cc0702673d513cfb3ccbbd11a148f (patch) | |
tree | 18d23a3cc2f242379012701d307edfd87cbd1e45 | |
parent | 921fc4e2cdd5d6d9c0b3bafd598053a049cab9fe (diff) |
Preventing cyclical calling of building route in case of some errors.
-rw-r--r-- | routing/car_router.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
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; } } } |