diff options
author | Maxim Pimenov <m@maps.me> | 2019-03-15 18:57:45 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2019-03-18 18:42:54 +0300 |
commit | 2bf94c95dd55f70951a82b5c306b8a29a72a4180 (patch) | |
tree | 1f8d735584de0277e134bc8da3ea3ddfd536d6ce /storage | |
parent | 108f38c7c9d4ff7286142af611549bbe00c9e39b (diff) |
Review fixes.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/storage.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/storage.cpp b/storage/storage.cpp index def9edde07..ea4b7d4089 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -1609,9 +1609,8 @@ void Storage::ApplyDiff(CountryId const & countryId, function<void(bool isSucces GetPlatform().RunTask(Platform::Thread::Gui, [this, fn, diffFile, countryId, result] { auto realResult = result; if (m_diffsBeingApplied.count(countryId) == 0 && realResult == DiffApplicationResult::Ok) - { realResult = DiffApplicationResult::Cancelled; - } + m_latestDiffRequest = {}; m_diffsBeingApplied.erase(countryId); switch (realResult) |