🐛 Fix code only running once
This commit is contained in:
parent
a14727f3f0
commit
a4698d07ab
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ export default async function downloadWrapper({ host, path, size, useCurl = fals
|
|||
//Download either via curl or natively with Node
|
||||
if (useCurl) {
|
||||
//Try up to three times
|
||||
for (let i = 0; i < 3; i += 3) {
|
||||
for (let i = 0; i < 3; i += 1) {
|
||||
try {
|
||||
const downloadResult = await downloadWithCurl({ host, path, tempFileName });
|
||||
return downloadResult;
|
||||
|
|
Loading…
Reference in a new issue