From 722be2442103df627851c0334f0367c5bfb36d34 Mon Sep 17 00:00:00 2001 From: santiago Date: Thu, 28 Jan 2021 18:10:53 -0300 Subject: [PATCH] try with more sleep --- dist/index.js | 4 ++-- index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 50ccfad..f411b40 100644 --- a/dist/index.js +++ b/dist/index.js @@ -194,12 +194,12 @@ async function signWithSigntool(fileName) { async function trySignFile(fileName) { console.log(`Signing ${fileName}.`); const extension = path_1.default.extname(fileName); - for (let i = 0; i < 10; i++) { - await sleep(i); + for (let i = 10; i < 20; i++) { if (signtoolFileExtensions.includes(extension)) { if (await signWithSigntool(fileName)) return; } + await sleep(i); } throw `Failed to sign '${fileName}'.`; } diff --git a/index.ts b/index.ts index fa5d2ae..beccf29 100644 --- a/index.ts +++ b/index.ts @@ -88,12 +88,12 @@ async function signWithSigntool(fileName: string) { async function trySignFile(fileName: string) { console.log(`Signing ${fileName}.`); const extension = path.extname(fileName); - for (let i=0; i< 10; i++) { - await sleep(i); + for (let i=10; i< 20; i++) { if (signtoolFileExtensions.includes(extension)) { if (await signWithSigntool(fileName)) return; } + await sleep(i); } throw `Failed to sign '${fileName}'.`; }