From 6fc5803e16279c037363e411d468199b963071f2 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 25 Feb 2022 15:54:56 -0500 Subject: [PATCH] Add another clearInterval to prevent looping during window.location --- web/skins/classic/views/js/watch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index 2a2d1d8d5..e9d383231 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -965,6 +965,7 @@ var secondsToCycle = 0; function nextCycleView() { secondsToCycle --; if (secondsToCycle<=0) { + clearInterval(intervalId); secondsToCycle = 0; window.location.replace('?view=watch&mid='+nextMid+'&mode='+mode+'&cycle=true'); }