From 00bfc7b3cb6025a4d01bae475941c8e8857ab44a Mon Sep 17 00:00:00 2001 From: VladiMihaylenko Date: Fri, 29 Jun 2018 16:14:32 +0300 Subject: [PATCH] Fixed downloading when some of nodes are failed. --- storage/storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/storage.cpp b/storage/storage.cpp index 37e821a162..a0df3602c9 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -628,7 +628,6 @@ void Storage::DownloadNextCountryFromQueue() !PreparePlaceForCountryFiles(GetCurrentDataVersion(), m_dataDir, GetCountryFile(countryId))) { OnMapDownloadFinished(countryId, false /* success */, queuedCountry.GetInitOptions()); - DownloadNextCountryFromQueue(); return; } @@ -2019,5 +2018,6 @@ void Storage::OnDownloadFailed(TCountryId const & countryId) if (it != m_queue.end()) PopFromQueue(it); NotifyStatusChangedForHierarchy(countryId); + DownloadNextCountryFromQueue(); } } // namespace storage