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 @@
// refresh live playlists after a target duration passes
if (!loader.media().endList) {
window.clearTimeout(mediaUpdateTimeout);
mediaUpdateTimeout = window.setTimeout(function() {
loader.trigger('mediaupdatetimeout');
}, refreshDelay);
......