Release v1.5.78

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sucukdeluxe
2026-03-03 23:17:37 +01:00
co-authored by Claude Opus 4.6
parent 956cad0da4
commit c4aefb6175
4 changed files with 21 additions and 26 deletions
+2 -2
View File
@@ -5216,7 +5216,7 @@ export class DownloadManager extends EventEmitter {
let allMissingExistOnDisk = true;
for (const part of missingParts) {
try {
const stat = fs.statSync(part);
const stat = await fs.promises.stat(part);
if (stat.size < 10240) {
allMissingExistOnDisk = false;
break;
@@ -5466,7 +5466,7 @@ export class DownloadManager extends EventEmitter {
continue;
}
try {
const stat = fs.statSync(item.targetPath);
const stat = await fs.promises.stat(item.targetPath);
// Require file to be either ≥50% of expected size or at least 10 KB to avoid
// recovering tiny error-response files (e.g. 9-byte "Forbidden" pages).
const minSize = item.totalBytes && item.totalBytes > 0