Skip to content

Commit

Permalink
handle empty ice candidate generated by Firefox 69.0b3 (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
gargvk10 authored and yuliangz committed Jul 11, 2019
1 parent 33f18a0 commit 63e3b85
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/js/rtc_session.js
Expand Up @@ -218,10 +218,11 @@ export class ConnectSignalingAndIceCollectionState extends RTCSessionState {
var candidate = evt.candidate;
this.logger.log('onicecandidate ' + JSON.stringify(candidate));
if (candidate) {
this._iceCandidates.push(this._createLocalCandidate(candidate));

if (!this._iceCompleted) {
this._checkCandidatesSufficient(candidate);
if (candidate.candidate) {
this._iceCandidates.push(this._createLocalCandidate(candidate));
if (!this._iceCompleted) {
this._checkCandidatesSufficient(candidate);
}
}

} else {
Expand Down

0 comments on commit 63e3b85

Please sign in to comment.