Skip to content

Commit d7704e0

Browse files
committed
small fix
1 parent 1eb464c commit d7704e0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

js/modules/webrtc/qbWebRTCClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ WebRTCClient.prototype._onStopListener = function(userID, sessionID, extension)
193193
var session = this.sessions[sessionID],
194194
extensionClone = JSON.parse(JSON.stringify(extension));
195195

196-
if( session && session.state === WebRTCSession.State.ACTIVE ){
196+
if( session && (session.state === WebRTCSession.State.ACTIVE || session.state === WebRTCSession.State.NEW)){
197197
this._cleanupExtension(extensionClone);
198198

199199
if (typeof this.onStopCallListener === 'function'){

0 commit comments

Comments
 (0)