Skip to content

Commit

Permalink
Improve "Execution context was destroyed" error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ngosang committed Aug 1, 2021
1 parent 9dae74b commit 447c8f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/providers/cloudflare.ts
Expand Up @@ -73,7 +73,9 @@ export default async function resolveChallenge(url: string, page: Page, response
} catch (error)
{
log.debug("Unexpected error: " + error);
break
if (!error.toString().includes("Execution context was destroyed")) {
break
}
}

log.debug('Waiting for Cloudflare challenge...')
Expand Down

0 comments on commit 447c8f6

Please sign in to comment.