forked from organicmaps/organicmaps
[downloader] Fixed downloader crash.
This commit is contained in:
parent
7a5ccaa4f4
commit
2c6a981b65
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue