Clear live playlist update timeout before setting a new one
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -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); | ... | ... |
-
Please register or sign in to post a comment