Skip to content

Commit b041b66

Browse files
committed
372
1 parent f56581f commit b041b66

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

quickblox.min.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85248,7 +85248,8 @@ RTCPeerConnection.prototype.onIceConnectionStateCallback = function() {
8524885248
this._startWaitingReconnectTimer();
8524985249
this.state = RTCPeerConnection.State.DISCONNECTED;
8525085250
connectionState = Helpers.SessionConnectionState.DISCONNECTED;
85251-
} else if (newIceConnectionState === 'closed'){
85251+
} else if (newIceConnectionState === 'closed') {
85252+
this._clearWaitingReconnectTimer();
8525285253
this.state = RTCPeerConnection.State.CLOSED;
8525385254
connectionState = Helpers.SessionConnectionState.CLOSED;
8525485255
}

samples/webrtc/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@
870870
$calleeStatus.text('connected');
871871
}
872872

873-
if(connectionState === QB.webrtc.SessionConnectionState.DISCONNECTED){
873+
if(connectionState === QB.webrtc.SessionConnectionState.DISCONNECTED) {
874874
app.helpers.toggleRemoteVideoView(userId, 'hide');
875875
$calleeStatus.text('disconnected');
876876
}

src/modules/webrtc/qbRTCPeerConnection.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ RTCPeerConnection.prototype.onIceConnectionStateCallback = function() {
222222
this._startWaitingReconnectTimer();
223223
this.state = RTCPeerConnection.State.DISCONNECTED;
224224
connectionState = Helpers.SessionConnectionState.DISCONNECTED;
225-
} else if (newIceConnectionState === 'closed'){
225+
} else if (newIceConnectionState === 'closed') {
226+
this._clearWaitingReconnectTimer();
226227
this.state = RTCPeerConnection.State.CLOSED;
227228
connectionState = Helpers.SessionConnectionState.CLOSED;
228229
}

0 commit comments

Comments
 (0)