From a73aaec393a3913f4c79d22f231538e8ce3f5443 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Tue, 28 Apr 2015 11:00:16 -0500 Subject: [PATCH] * don't fail someone joining a session with an unknown latency or very large latency --- web/app/assets/javascripts/wizard/gear_utils.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/app/assets/javascripts/wizard/gear_utils.js b/web/app/assets/javascripts/wizard/gear_utils.js index 6c625f585..c2b733e68 100644 --- a/web/app/assets/javascripts/wizard/gear_utils.js +++ b/web/app/assets/javascripts/wizard/gear_utils.js @@ -37,7 +37,13 @@ var isNoInputProfile = gearUtils.isNoInputProfile(profile); var expectedLatency = context.jamClient.FTUEGetExpectedLatency(); var audioLatency = expectedLatency ? expectedLatency.latency : null; - var highLatency = audioLatency > 20; + + // only compute high latency if the value is known. Also don't accept insanely largue values + var highLatency = false; + if(audioLatency) { + highLatency = audioLatency > 20 && audioLatency < 1000; + } + var networkScore = context.jamClient.GetNetworkTestScore(); var badNetworkScore = networkScore < 2;