diff --git a/static/js/fs.js b/static/js/fs.js index 92ef3ad8e..b8858a2ba 100644 --- a/static/js/fs.js +++ b/static/js/fs.js @@ -48,7 +48,10 @@ pandora.fs = (function() { delete that.downloads[id]; active = false; if (queue.length) { - cacheVideo.apply(null, queue.shift()); + var next = queue.shift(); + setTimeout(function() { + cacheVideo(next[0], next[1]); + }); } } else { downloadPart(part + 1); @@ -94,7 +97,10 @@ pandora.fs = (function() { delete that.downloads[id]; active = false; if (queue.length) { - cacheVideo.apply(null, queue.shift()); + var next = queue.shift(); + setTimeout(function() { + cacheVideo(next[0], next[1]); + }); } } else { pandora.api.get({id: id, keys: ['parts']}, function(result) {