From 9ebb25e77e609ef1f7ec43175fe6d6ef40069451 Mon Sep 17 00:00:00 2001 From: vng Date: Sat, 1 Nov 2014 12:23:58 +0100 Subject: [PATCH] Do delayed update if mwm file is actually locked. --- indexer/index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexer/index.cpp b/indexer/index.cpp index 870e8a9036..2aab7a75e4 100644 --- a/indexer/index.cpp +++ b/indexer/index.cpp @@ -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;