Skip to content

Commit 3a3d8f0

Browse files
committed
Deploying to gh-pages from @ f88e29d 🚀
1 parent 356d659 commit 3a3d8f0

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

develop/examples/app.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,9 +512,7 @@ async function printPeerConnectionStateInfo(event, logPrefix, remoteClientId) {
512512
removeViewerTrackFromMaster(remoteClientId);
513513
}
514514
console.error(logPrefix, `Connection to ${remoteClientId || 'peer'} failed!`);
515-
if (ROLE === 'MASTER') {
516-
onPeerConnectionFailed(remoteClientId);
517-
}
515+
onPeerConnectionFailed(remoteClientId);
518516
}
519517
}
520518

develop/examples/master.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ registerMasterSignalingClientCallbacks = (signalingClient, formValues, onStatsRe
244244
console.log(`[${role}] Still connecting after ${i} seconds.`);
245245
} else {
246246
console.error(`[${role}] Connection was not successful - Will retry after ${RETRY_TIMEOUT_SECONDS} seconds.`);
247-
onPeerConnectionFailed(remoteClientId, false, false);
247+
onPeerConnectionFailed(remoteClientId, false);
248248
}
249249
}
250250
}, i * 1000);
@@ -284,17 +284,13 @@ registerMasterSignalingClientCallbacks = (signalingClient, formValues, onStatsRe
284284
}
285285
};
286286

287-
function onPeerConnectionFailed(remoteClientId, printLostConnectionLog = true, hasConnectedAlready = true) {
287+
function onPeerConnectionFailed(remoteClientId, printLostConnectionLog = true) {
288288
const role = ROLE;
289289
if (master?.channelHelper.isIngestionEnabled()) {
290290
if (printLostConnectionLog) {
291291
console.warn(`[${ROLE}] Lost connection to the storage session.`);
292292
}
293293
master?.connectionFailures?.push(new Date().getTime());
294-
if (hasConnectedAlready && role === 'VIEWER') {
295-
$('#stop-master-button').click();
296-
return;
297-
}
298294
if (shouldStopRetryingJoinStorageSession()) {
299295
console.error(
300296
`[${role}] Stopping the application after`,

0 commit comments

Comments
 (0)