[downloader] Fixed downloader crash.

This commit is contained in:
Ilya Grechuhin 2016-03-23 10:34:42 +03:00 committed by Sergey Yershov
parent 7a5ccaa4f4
commit 2c6a981b65

View file

@ -1424,11 +1424,10 @@ bool Storage::GetUpdateInfo(TCountryId const & countryId, UpdateInfo & updateInf
void Storage::CorrectJustDownloadedAndQueue(TQueue::iterator justDownloadedItem)
{
m_justDownloaded.insert(justDownloadedItem->GetCountryId());
m_queue.erase(justDownloadedItem);
if (m_queue.empty())
m_justDownloaded.clear();
else
m_justDownloaded.insert(justDownloadedItem->GetCountryId());
}
void Storage::GetQueuedChildren(TCountryId const & parent, TCountriesVec & queuedChildren) const