Skip to content

Commit

Permalink
Fix ICE restarts (#2702)
Browse files Browse the repository at this point in the history
We didn't reset the 'seen end of candidates' flag when doign an ICE
restart, so we would have ignored all locally gathered candidates
on an ICE restart.
  • Loading branch information
dbkr authored Sep 27, 2022
1 parent ab39ee3 commit e48d919
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/webrtc/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2025,6 +2025,7 @@ export class MatrixCall extends TypedEventEmitter<CallEvent, CallEventHandlerMap
} else if (this.peerConn.iceConnectionState == 'failed') {
// Firefox for Android does not yet have support for restartIce()
if (this.peerConn.restartIce) {
this.candidatesEnded = false;
this.peerConn.restartIce();
} else {
this.hangup(CallErrorCode.IceFailed, false);
Expand Down

0 comments on commit e48d919

Please sign in to comment.