From 2b840abc9a7dc480521e45a6fb4f964f697dd5bd Mon Sep 17 00:00:00 2001 From: C-3PO Date: Fri, 16 Nov 2018 05:48:06 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Try=20downloading=20up=20to=2010=20?= =?UTF-8?q?times?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cdn/downloadWrapper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdn/downloadWrapper.ts b/src/cdn/downloadWrapper.ts index 0e5ae5a..b1854b8 100644 --- a/src/cdn/downloadWrapper.ts +++ b/src/cdn/downloadWrapper.ts @@ -21,8 +21,8 @@ export default async function downloadWrapper({ host, path, size }: {host: strin } //Download via curl - //Try up to three times - for (let i = 0; i < 3; i += 1) { + //Try up to ten times + for (let i = 0; i < 10; i += 1) { try { const downloadResult = await downloadWithCurl({ host, path, tempFileName }); return downloadResult;