File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 327327 subtree : true ,
328328} ) ;
329329
330- const _makePeerConnection = ( peerConnectionId , isHost ) => {
330+ const _makePeerConnection = peerConnectionId => {
331331 const peerConnectionConfig = {
332332 iceServers : [
333333 { 'urls' : 'stun:stun.stunprotocol.org:3478' } ,
479479 connectionId,
480480 } ) ) ;
481481 } ;
482- const isHost = userName === channelName ;
483482 const _addPeerConnection = peerConnectionId => {
484483 let peerConnection = peerConnections . find ( peerConnection => peerConnection . connectionId === peerConnectionId ) ;
485484 if ( peerConnection && ! peerConnection . open ) {
486485 peerConnection . close ( ) ;
487486 peerConnection = null ;
488487 }
489488 if ( ! peerConnection ) {
490- peerConnection = _makePeerConnection ( peerConnectionId , isHost ) ;
489+ peerConnection = _makePeerConnection ( peerConnectionId ) ;
491490 peerConnection . onicecandidate = e => {
492491 // console.log('ice candidate', e.candidate);
493492
You can’t perform that action at this time.
0 commit comments