diff --git a/webroot/js/app.js b/webroot/js/app.js index 7bd76673c..08d2cdcc2 100644 --- a/webroot/js/app.js +++ b/webroot/js/app.js @@ -48,7 +48,6 @@ async function getStatus() { app.streamStatus = "Stream server is offline." } - setInterval(getStatus, 5000) } function setupWebsocket() { @@ -66,6 +65,7 @@ function setupWebsocket() { setupApp() getStatus(); setupWebsocket() +setInterval(getStatus, 5000) var video = document.getElementById("video") var videoSrc = "hls/stream.m3u8"