Skip to content

Commit

Permalink
try with more sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrucho committed Jan 28, 2021
1 parent 70e5b65 commit 722be24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}'.`;
}
Expand Down
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}'.`;
}
Expand Down

0 comments on commit 722be24

Please sign in to comment.