Do delayed update if mwm file is actually locked.

This commit is contained in:
vng 2014-11-01 12:23:58 +01:00 committed by Alex Zolotarev
parent c42eab9938
commit 9ebb25e77e

View file

@ -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;