Try downloading up to 10 times

This commit is contained in:
C-3PO 2018-11-16 05:48:06 +01:00
parent bbbc2510f5
commit 2b840abc9a
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -21,8 +21,8 @@ export default async function downloadWrapper({ host, path, size }: {host: strin
} }
//Download via curl //Download via curl
//Try up to three times //Try up to ten times
for (let i = 0; i < 3; i += 1) { for (let i = 0; i < 10; i += 1) {
try { try {
const downloadResult = await downloadWithCurl({ host, path, tempFileName }); const downloadResult = await downloadWithCurl({ host, path, tempFileName });
return downloadResult; return downloadResult;