From 820487db2f414481b9be2c8798e0c3226e289127 Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Wed, 1 Nov 2017 17:25:08 +0300 Subject: [PATCH] [storage] review fixes --- storage/storage.cpp | 1 + storage/storage.hpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/storage/storage.cpp b/storage/storage.cpp index fe709b2fc2..585812a74b 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -1454,6 +1454,7 @@ void Storage::OnDiffStatusReceived(diffs::Status const status) if (!isSuccess) { m_failedCountries.insert(countryId); + NotifyStatusChangedForHierarchy(countryId); return; } diff --git a/storage/storage.hpp b/storage/storage.hpp index 1f1240948b..f63056aed4 100644 --- a/storage/storage.hpp +++ b/storage/storage.hpp @@ -662,6 +662,8 @@ private: void LoadDiffScheme(); void ApplyDiff(TCountryId const & countryId, function const & fn); + // Should be called once on startup, downloading process should be suspended until this method + // was not called. Do not call this method manually. void OnDiffStatusReceived(diffs::Status const status) override; };