Skip to content

Commit e48d919

Browse files
authored
Fix ICE restarts (#2702)
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.
1 parent ab39ee3 commit e48d919

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/webrtc/call.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,6 +2025,7 @@ export class MatrixCall extends TypedEventEmitter<CallEvent, CallEventHandlerMap
20252025
} else if (this.peerConn.iceConnectionState == 'failed') {
20262026
// Firefox for Android does not yet have support for restartIce()
20272027
if (this.peerConn.restartIce) {
2028+
this.candidatesEnded = false;
20282029
this.peerConn.restartIce();
20292030
} else {
20302031
this.hangup(CallErrorCode.IceFailed, false);

0 commit comments

Comments
 (0)