From b03bb6bc36b6398b3a05c2d5f31f661ff852b724 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 20 Mar 2015 21:06:12 -0400 Subject: [PATCH] 2015: live: Return nullStats when there is no such mount point. --- 2015/assets/js/stream.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/2015/assets/js/stream.js b/2015/assets/js/stream.js index 336fd3a7..3edbdc06 100644 --- a/2015/assets/js/stream.js +++ b/2015/assets/js/stream.js @@ -48,6 +48,10 @@ app.streamStats = function(mount) { // Match the end of the listen URL for the mount point. var regexp = new RegExp(mount.concat('$')); + if(!data.icestats.source) { + return app.nullStats; + } + // Due to , we must // explicitly test if icestats.source is an array. if(!(data.icestats.source instanceof Array)) { -- 2.25.1