Bug 991368 - Avoid exception on calling close() twice. r=abr, r=jesup

This commit is contained in:
Nils Ohlmeier [:drno] 2014-04-04 08:34:25 -04:00
parent fbb4f76b66
commit 498be98b94

View File

@ -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");