Skip to content

Commit

Permalink
Merge pull request #2055 from openzim/race-condition
Browse files Browse the repository at this point in the history
Properly await async polyfill function to avoid race condition
  • Loading branch information
audiodude authored Jul 7, 2024
2 parents 372f0c7 + dbff5d9 commit 4e572ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mwoffliner.lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ async function execute(argv: any) {

if (downloader.webp) {
logger.log('Downloading polyfill module')
importPolyfillModules(zimCreator)
await importPolyfillModules(zimCreator)
}

logger.log('Downloading module dependencies')
Expand Down

0 comments on commit 4e572ac

Please sign in to comment.