diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2017-09-04 14:27:46 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2017-09-13 16:25:50 +0300 |
commit | 8af1a59abca8223d042831ea2a4cd916dc9d682c (patch) | |
tree | 376e6d188ee2866af6eaf814280441e231ccc5b8 | |
parent | 939456efa6e6878b7e195728f292cd91ff191c1b (diff) |
Check if there is a diff before downloading.
-rw-r--r-- | storage/storage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/storage.cpp b/storage/storage.cpp index 74149af205..d862e4df3a 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -786,6 +786,8 @@ void Storage::OnServerListDownloaded(vector<string> const & urls) queuedCountry.ResetToDefaultOptions(); break; case Status::Available: + if (!m_diffManager.HasDiffFor(queuedCountry.GetCountryId())) + queuedCountry.ResetToDefaultOptions(); break; } } |