add update lock

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-12-29 14:36:07 +02:00
parent 64e119585d
commit abec40af7f
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
26 changed files with 208 additions and 32 deletions

View file

@ -484,7 +484,7 @@ void EnsureMetadataTask::updateMetadata(ModPlatform::IndexedPack& pack, ModPlatf
if (ver.fileName.endsWith(".disabled"))
ver.fileName.chop(9);
auto task = makeShared<LocalResourceUpdateTask>(m_indexDir, pack, ver);
auto task = makeShared<LocalResourceUpdateTask>(m_indexDir, pack, ver, m_lockUpdate);
connect(task.get(), &Task::finished, this, [this, &pack, resource] { updateMetadataCallback(pack, resource); });