mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
close context if encounter error
This commit is contained in:
parent
610c790a7e
commit
4929bae81b
1 changed files with 1 additions and 0 deletions
|
|
@ -553,6 +553,7 @@ async function retrievePage(url) {
|
|||
if (lastPdfUrl) {
|
||||
return { context, page, finalUrl: lastPdfUrl, contentType: 'application/pdf' };
|
||||
}
|
||||
await context.close();
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue