Skip to content

Commit

Permalink
cherry-pick(release-1.9): fix(BrowserContext): race between continue …
Browse files Browse the repository at this point in the history
…and close (#5771)
  • Loading branch information
dgozman authored Mar 9, 2021
1 parent 11968ce commit e42fe21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/browserContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export class BrowserContext extends ChannelOwner<channels.BrowserContextChannel,
return;
}
}
route.continue();
// it can race with BrowserContext.close() which then throws since its closed
route.continue().catch(() => {});
}

async _onBinding(bindingCall: BindingCall) {
Expand Down

0 comments on commit e42fe21

Please sign in to comment.