From 447334def7efa0eafe421cf12ad7490b35f775bc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 21 Feb 2022 20:08:19 +0300 Subject: fixes #3025 (occasional crash in AVS) --- plugins/AVS/src/cache.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/AVS/src/cache.cpp') diff --git a/plugins/AVS/src/cache.cpp b/plugins/AVS/src/cache.cpp index 7a38993f06..c60c8cd05b 100644 --- a/plugins/AVS/src/cache.cpp +++ b/plugins/AVS/src/cache.cpp @@ -223,6 +223,7 @@ int SetAvatarAttribute(MCONTACT hContact, uint32_t attrib, int mode) void PicLoader(LPVOID) { Thread_SetName("AVS: PicLoader"); + MThreadLock threadLock(hLoaderThread); uint32_t dwDelay = g_plugin.getDword("picloader_sleeptime", 80); -- cgit v1.2.3