Skip to content

Commit 36f9c0d

Browse files
author
Igor Khomenko
committed
updated session.closeConnection method
1 parent 841afdf commit 36f9c0d

File tree

3 files changed

+15
-31
lines changed

3 files changed

+15
-31
lines changed

js/modules/webrtc/qbWebRTCSession.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,6 @@ WebRTCSession.prototype.closeConnection = function(userId) {
372372
if(peer) {
373373
peer.release();
374374

375-
if (typeof self.onSessionConnectionStateChangedListener === 'function'){
376-
Utils.safeCallbackCall(self.onSessionConnectionStateChangedListener, self, userId, RTCPeerConnection.State.CLOSED);
377-
}
378-
379375
self._closeSessionIfAllConnectionsClosed();
380376
} else {
381377
Helpers.traceWarn('Not found connection with user (' + userId + ')');

0 commit comments

Comments
 (0)