forked from organicmaps/organicmaps
Do delayed update if mwm file is actually locked.
This commit is contained in:
parent
c42eab9938
commit
9ebb25e77e
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ int Index::UpdateMap(string const & fileName, m2::RectD & rect)
|
|||
UNUSED_VALUE(mutexGuard);
|
||||
|
||||
MwmId const id = GetIdByName(fileName);
|
||||
if (id != INVALID_MWM_ID)
|
||||
if (id != INVALID_MWM_ID && m_info[id].m_lockCount > 0)
|
||||
{
|
||||
m_info[id].m_status = MwmInfo::STATUS_UPDATE;
|
||||
return -2;
|
||||
|
|
Loading…
Add table
Reference in a new issue