Skip to content

Commit

Permalink
Fix signalingState errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Palid committed Aug 9, 2021
1 parent 3edfe70 commit f6f3a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webrtc/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ export class MatrixCall extends EventEmitter {
// https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Perfect_negotiation
const offerCollision = (
(description.type === 'offer') &&
(this.makingOffer || this.peerConn.signalingState != 'stable')
(this.makingOffer || this.peerConn?.signalingState != 'stable')
);

this.ignoreOffer = !polite && offerCollision;
Expand Down

0 comments on commit f6f3a69

Please sign in to comment.