Skip to content

Commit

Permalink
Close browser after account session
Browse files Browse the repository at this point in the history
  • Loading branch information
claabs committed May 20, 2022
1 parent 48cc8f4 commit 44d61ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ export async function redeemAccount(account: AccountConfig, index: number): Prom
await purchasePuppeteer.purchaseShort(offers[i].offerNamespace, offers[i].offerId);
L.info(`Done purchasing ${offers[i].productName}`);
}
L.debug('Closing browser');
await browser.close();
L.trace('Browser finished closing');
} catch (e) {
if (e.response) {
if (e.response.body) L.error(e.response.body);
Expand Down

0 comments on commit 44d61ee

Please sign in to comment.