fix(BrowserContext): race between continue and close (#5729)
This commit is contained in:
parent
aae8cc839a
commit
d311058245
|
|
@ -79,7 +79,8 @@ export class BrowserContext extends ChannelOwner<channels.BrowserContextChannel,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
route.continue();
|
// it can race with BrowserContext.close() which then throws since its closed
|
||||||
|
route.continue().catch(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
async _onBinding(bindingCall: BindingCall) {
|
async _onBinding(bindingCall: BindingCall) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue