From 8af1a59abca8223d042831ea2a4cd916dc9d682c Mon Sep 17 00:00:00 2001 From: VladiMihaylenko Date: Mon, 4 Sep 2017 14:27:46 +0300 Subject: Check if there is a diff before downloading. --- storage/storage.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'storage') 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 const & urls) queuedCountry.ResetToDefaultOptions(); break; case Status::Available: + if (!m_diffManager.HasDiffFor(queuedCountry.GetCountryId())) + queuedCountry.ResetToDefaultOptions(); break; } } -- cgit v1.2.3