Skip to content

Commit

Permalink
numbering closes
Browse files Browse the repository at this point in the history
  • Loading branch information
BatMiles committed Jul 23, 2024
1 parent 69ae183 commit 7d25469
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,10 @@ export const collect = async (inUrl: string, args: CollectorOptions) => {
// console.log('... done saving har');
}

console.log('closing browser');
console.log('closing browser 1');
console.log(browser);
await browser.close();
console.log('... done closing browser');
console.log('... done closing browser 1');
if (typeof userDataDir !== 'undefined') {
clearDir(userDataDir, false);
}
Expand Down Expand Up @@ -403,7 +404,7 @@ export const collect = async (inUrl: string, args: CollectorOptions) => {
finally {
// close browser and clear tmp dir
if (browser && !didBrowserDisconnect) {
console.log("closing browser");
console.log("closing browser 2");
await browser.close();
console.log("done closing browser 2");
}
Expand Down

0 comments on commit 7d25469

Please sign in to comment.