mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 991368 - Avoid exception on calling close() twice. r=abr, r=jesup
This commit is contained in:
parent
fbb4f76b66
commit
498be98b94
@ -779,6 +779,9 @@ RTCPeerConnection.prototype = {
|
||||
},
|
||||
|
||||
close: function() {
|
||||
if (this._closed) {
|
||||
return;
|
||||
}
|
||||
this._queueOrRun({ func: this._close, args: [false], wait: false });
|
||||
this._closed = true;
|
||||
this.changeIceConnectionState("closed");
|
||||
|
Loading…
Reference in New Issue
Block a user