Skip to content

Commit

Permalink
zinnia: fix end update loops outside of signal event (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber authored Mar 15, 2024
1 parent 896d912 commit fd3ff9b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/zinnia.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ const runUpdateSourceFilesLoop = async ({
}
return
}
if (signal.aborted) {
return
}
}
}

Expand All @@ -180,6 +183,9 @@ const runUpdateContractsLoop = async ({ signal, provider, abi, contracts }) => {
const newContracts = await getContractsWithRetry(provider, abi)
contracts.splice(0)
contracts.push(...newContracts)
if (signal.aborted) {
return
}
}
}

Expand Down

0 comments on commit fd3ff9b

Please sign in to comment.