Skip to content

Commit

Permalink
Merge pull request #240 from rusekr/icefailedbugfix
Browse files Browse the repository at this point in the history
ICE connection RTP timeout status fix
  • Loading branch information
ibc committed Sep 5, 2014
2 parents 7141073 + 80c32f3 commit 36c77f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RTCSession/RTCMediaHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ RTCMediaHandler.prototype = {
this.peerConnection.oniceconnectionstatechange = function() {
self.logger.log('ICE connection state changed to "'+ this.iceConnectionState +'"');

if (this.iceConnectionState === 'disconnected') {
if (this.iceConnectionState === 'failed') {
self.session.terminate({
cause: JsSIP.C.causes.RTP_TIMEOUT,
status_code: 200,
Expand Down

0 comments on commit 36c77f9

Please sign in to comment.