fix(BrowserContext): race between continue and close (#5729)

This commit is contained in:
Max Schmitt 2021-03-09 04:53:19 +01:00 committed by GitHub
parent aae8cc839a
commit d311058245
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {