mirror of
https://gitea.shironeko-all.duckdns.org/shironeko/Hytale-F2P-2.git
synced 2026-02-26 18:51:46 -03:00
Update fileManager.js
This commit is contained in:
@@ -340,7 +340,7 @@ async function downloadFile(url, dest, progressCallback, maxRetries = 5) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return dest;
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
lastError = error;
|
lastError = error;
|
||||||
@@ -363,7 +363,7 @@ async function downloadFile(url, dest, progressCallback, maxRetries = 5) {
|
|||||||
// If file is substantial size (> 1.5GB), treat as success and break
|
// If file is substantial size (> 1.5GB), treat as success and break
|
||||||
if (sizeInMB >= 1500) {
|
if (sizeInMB >= 1500) {
|
||||||
console.log('File appears to be complete despite error, treating as success');
|
console.log('File appears to be complete despite error, treating as success');
|
||||||
return; // Exit the retry loop successfully
|
return dest; // Exit the retry loop successfully
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user