Skip to content

Commit 15d08ea

Browse files
committed
fix a blocked bug
1 parent f188476 commit 15d08ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/webrtc/js/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
'use strict';
33

44
$(function() {
5-
var peerConnList = QB.webrtc.PeerConnectionState;
6-
75
var sounds = {
86
'call': 'callingSignal',
97
'end': 'endCallSignal',
@@ -712,7 +710,9 @@
712710
console.log('Session: ', session);
713711
console.groupEnd();
714712

715-
var state = app.currentSession.connectionStateForUser(userId);
713+
var state = app.currentSession.connectionStateForUser(userId),
714+
peerConnList = QB.webrtc.PeerConnectionState;
715+
716716

717717
if(state === peerConnList.DISCONNECTED || state === peerConnList.FAILED || state === peerConnList.CLOSED) {
718718
return false;

0 commit comments

Comments
 (0)