9e0a6d2b by Tadej Novak Committed by David LaPalomento

Clear live playlist update timeout before setting a new one

1 parent e3aa0fc0
...@@ -94,6 +94,7 @@ ...@@ -94,6 +94,7 @@
94 94
95 // refresh live playlists after a target duration passes 95 // refresh live playlists after a target duration passes
96 if (!loader.media().endList) { 96 if (!loader.media().endList) {
97 window.clearTimeout(mediaUpdateTimeout);
97 mediaUpdateTimeout = window.setTimeout(function() { 98 mediaUpdateTimeout = window.setTimeout(function() {
98 loader.trigger('mediaupdatetimeout'); 99 loader.trigger('mediaupdatetimeout');
99 }, refreshDelay); 100 }, refreshDelay);
......