remove copy of property that meant downloader would only lock one source at a time

This commit is contained in:
DubbleClick
2025-06-19 11:00:07 +07:00
parent 5f3f999222
commit 2f8e225abd
2 changed files with 11 additions and 6 deletions

View File

@@ -650,6 +650,12 @@ class Downloader
return true;
}
}
if (!$force && $download_as === SPC_DOWNLOAD_PACKAGE && $lock_item !== null) {
if (file_exists($path = LockFile::getLockFullPath($lock_item))) {
logger()->notice("Source [{$name}] already downloaded: {$path}");
return true;
}
}
return false;
}
}