[ios] Fix issues with RouterResultCode::NeedMoreMaps

This commit is contained in:
VladiMihaylenko 2019-01-09 20:57:39 +03:00 committed by Roman Kuznetsov
parent 4749df1d1b
commit b971bc5a63

View file

@ -210,6 +210,9 @@ using Observers = NSHashTable<Observer>;
- (void)stateError
{
if (_state == MWMNavigationDashboardStateReady)
return;
NSAssert(_state == MWMNavigationDashboardStatePlanning, @"Invalid state change (error)");
auto routePreview = self.routePreview;
[routePreview router:[MWMRouter type] setState:MWMCircularProgressStateFailed];