summaryrefslogtreecommitdiff
path: root/plugins/AVS/src/cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AVS/src/cache.cpp')
-rw-r--r--plugins/AVS/src/cache.cpp1
1 files changed, 1 insertions, 0 deletions
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);