Skip to content

Commit

Permalink
trickle-ice: remove fallback for icegatheringstatechange being unavai…
Browse files Browse the repository at this point in the history
…lable

this shipped in March 2017 (in Chrome)
  • Loading branch information
fippo committed Jun 10, 2022
1 parent 64220fa commit 059171a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/content/peerconnection/trickle-ice/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,6 @@ function iceCallback(event) {
appendCell(row, candidate.sdpMLineIndex);
appendCell(row, candidate.usernameFragment);
candidates.push(candidate);
} else if (!('onicegatheringstatechange' in RTCPeerConnection.prototype)) {
// should not be done if its done in the icegatheringstatechange callback.
appendCell(row, getFinalResult(), 10);
pc.close();
pc = null;
pc = null;
if (stream) {
stream.getTracks().forEach(track => track.stop());
stream = null;
}
gatherButton.disabled = false;
getUserMediaInput.disabled = false;
}
candidateTBody.appendChild(row);
}
Expand Down

0 comments on commit 059171a

Please sign in to comment.