aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/nms.js')
-rw-r--r--web/js/nms.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/js/nms.js b/web/js/nms.js
index d4c3488..5602357 100644
--- a/web/js/nms.js
+++ b/web/js/nms.js
@@ -399,8 +399,10 @@ nms.tvmode.tick = function() {
nms.tvmode.currentIndex++;
}
nms.tvmode.stop = function() {
- nms.timers.tvmode.stop();
- nms.tvmode.active = false;
+ if (nms.tvmode.active) {
+ nms.timers.tvmode.stop();
+ nms.tvmode.active = false;
+ }
}
function ensureAnchorHas(view) {