summaryrefslogtreecommitdiff
path: root/dom/media/PeerConnection.js
diff options
context:
space:
mode:
authorByron Campen [:bwc] <docfaraday@gmail.com>2018-05-31 11:30:19 -0500
committerwolfbeast <mcwerewolf@gmail.com>2018-06-29 08:01:58 +0200
commitb8b1fc810b6f768a21136c052243c03c7c5af0a1 (patch)
treecc424564b1808121f4dc3b2702741cdf7045d3c5 /dom/media/PeerConnection.js
parent3fed120a937de2dc27c8f17943c6133b2e6e13b2 (diff)
downloaduxp-b8b1fc810b6f768a21136c052243c03c7c5af0a1.tar.gz
Bug 1464079 - Bring ICE connection state change callback up to spec. r=jib, a=RyanVM
WebRTC
Diffstat (limited to 'dom/media/PeerConnection.js')
-rw-r--r--dom/media/PeerConnection.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/dom/media/PeerConnection.js b/dom/media/PeerConnection.js
index 0c3021799a..d13f1d0fbb 100644
--- a/dom/media/PeerConnection.js
+++ b/dom/media/PeerConnection.js
@@ -1445,7 +1445,10 @@ PeerConnectionObserver.prototype = {
break;
case "IceConnectionState":
- this.handleIceConnectionStateChange(this._dompc._pc.iceConnectionState);
+ let connState = this._dompc._pc.iceConnectionState;
+ this._dompc._queueTaskWithClosedCheck(() => {
+ this.handleIceConnectionStateChange(connState);
+ });
break;
case "IceGatheringState":