diff options
author | ygorshenin <mipt.vi002@gmail.com> | 2016-12-15 19:55:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-15 19:55:01 +0300 |
commit | 67ef270a6e75d7129fc0640c802d2e61d8554c57 (patch) | |
tree | 18d23a3cc2f242379012701d307edfd87cbd1e45 | |
parent | 921fc4e2cdd5d6d9c0b3bafd598053a049cab9fe (diff) | |
parent | 98f5269ab26cc0702673d513cfb3ccbbd11a148f (diff) |
Merge pull request #5011 from bykoianko/release-70-FindRouteMSMT-optimization
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; } } } |