@@ -20,7 +20,7 @@ export default class WebRtcCommunication extends MewConnectCommon {
20
20
this . answersReceived = [ ] ;
21
21
this . offersSent = - 1 ;
22
22
this . turnTimer = null ;
23
- this . turnWaitTime = 5000 ;
23
+ this . turnWaitTime = 2000 ;
24
24
this . enableTimer = true ;
25
25
this . tryingTurn = false ;
26
26
this . connected = false ;
@@ -162,7 +162,6 @@ export default class WebRtcCommunication extends MewConnectCommon {
162
162
onConnect ( peerID ) {
163
163
debug ( 'onConnect' , peerID ) ;
164
164
this . connected = true ;
165
- // this.emit('connect', peerID);
166
165
this . emit ( this . jsonDetails . lifeCycle . RtcConnectedEvent , peerID ) ;
167
166
this . clearExtraOnConnection ( ) ;
168
167
}
@@ -240,7 +239,6 @@ export default class WebRtcCommunication extends MewConnectCommon {
240
239
// Handle Socket Attempting Turn informative signal
241
240
// Provide Notice that initial WebRTC connection failed and the fallback method will be used
242
241
willAttemptTurn ( ) {
243
- this . uiCommunicator ( this . lifeCycle . UsingFallback , this . activeInitiatorId ) ;
244
242
if ( ! this . connected && this . tryingTurn && this . usingVersion === 'V2' ) {
245
243
this . refreshQrTimer ( ) ;
246
244
this . refreshEnabled = false ;
@@ -250,7 +248,6 @@ export default class WebRtcCommunication extends MewConnectCommon {
250
248
debugStages ( ' TRY TURN V2' ) ;
251
249
this . tryingTurn = true ;
252
250
try {
253
- console . log ( 'here' , 1 ) ;
254
251
this . useFallback ( ) ;
255
252
} catch ( e ) {
256
253
// eslint-disable-next-line
@@ -279,7 +276,6 @@ export default class WebRtcCommunication extends MewConnectCommon {
279
276
280
277
useFallback ( ) {
281
278
if ( ! this . connected ) {
282
- console . log ( 'here' , 4 ) ;
283
279
this . emit ( this . lifeCycle . UsingFallback , this . activeInitiatorId ) ;
284
280
}
285
281
}
@@ -311,7 +307,6 @@ export default class WebRtcCommunication extends MewConnectCommon {
311
307
! this . turnDisabled
312
308
) {
313
309
this . turnDisabled = true ;
314
- console . log ( 'here' , 2 ) ;
315
310
this . useFallback ( ) ;
316
311
}
317
312
}
@@ -419,7 +414,6 @@ export default class WebRtcCommunication extends MewConnectCommon {
419
414
}
420
415
421
416
if ( ! this . connected && ! this . tryingTurn && ! this . turnDisabled ) {
422
- console . log ( 'here' , 3 ) ;
423
417
this . useFallback ( ) ;
424
418
} else {
425
419
if ( ! this . isAlive ( ) ) {
0 commit comments