зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1503023 - After waiting for certs make sure the PeerConnection still exists r=jib
Ensure that a PeerConnection is still open before setting the certificates. Differential Revision: https://phabricator.services.mozilla.com/D10122 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
41766ace70
Коммит
29b141f8e4
|
@ -581,7 +581,10 @@ class RTCPeerConnection {
|
|||
name: "ECDSA", namedCurve: "P-256",
|
||||
});
|
||||
}
|
||||
this._impl.certificate = certificate;
|
||||
// Is the PC still around after the await?
|
||||
if (!this._closed) {
|
||||
this._impl.certificate = certificate;
|
||||
}
|
||||
}
|
||||
|
||||
_resetPeerIdentityPromise() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче