Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorygorshenin <mipt.vi002@gmail.com>2016-12-15 19:55:01 +0300
committerGitHub <noreply@github.com>2016-12-15 19:55:01 +0300
commit67ef270a6e75d7129fc0640c802d2e61d8554c57 (patch)
tree18d23a3cc2f242379012701d307edfd87cbd1e45
parent921fc4e2cdd5d6d9c0b3bafd598053a049cab9fe (diff)
parent98f5269ab26cc0702673d513cfb3ccbbd11a148f (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.cpp13
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;
}
}
}