summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/ICQ-WIM/src/utils.cpp')
-rw-r--r--protocols/ICQ-WIM/src/utils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/ICQ-WIM/src/utils.cpp b/protocols/ICQ-WIM/src/utils.cpp
index bdaac877bf..83d876adb0 100644
--- a/protocols/ICQ-WIM/src/utils.cpp
+++ b/protocols/ICQ-WIM/src/utils.cpp
@@ -46,6 +46,8 @@ void CIcqProto::InitContactCache()
auto *pUser = FindUser(wszId);
if (pUser == nullptr) {
pUser = new IcqUser(wszId, it);
+
+ mir_cslock lck(m_csCache);
m_arCache.insert(pUser);
}
pUser->m_iProcessedMsgId = getId(it, DB_KEY_LASTMSGID);