Skip to content

Commit

Permalink
fix: ensure promise is resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 15, 2021
1 parent d47a132 commit a30f1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lighthouse/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = async (
onFailedAttempt: async error => {
if (error.name === 'AbortError') throw error
if (isRejected) throw new AbortError()
browserless.then(browserless => browserless.respawn())
Promise.resolve(browserless).then(browserless => browserless.respawn())
const { message, attemptNumber, retriesLeft } = error
debug('retry', { attemptNumber, retriesLeft, message })
}
Expand Down

0 comments on commit a30f1de

Please sign in to comment.