From 90e7e9082b91bfa9285d924106a2f8bb41bbf306 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 2 Jun 2020 14:15:32 -0700 Subject: [PATCH] Fix status checking loop. --- webroot/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"