From 63754e4694e6b31d76979fb31346b029be56cc9c Mon Sep 17 00:00:00 2001 From: IrosTheBeggar Date: Mon, 22 May 2017 10:13:23 -0400 Subject: [PATCH] I forgot a zero when handling the cache timer causing some lag for people with slower network corrections. Whoops --- public/js/mstream.player.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/mstream.player.js b/public/js/mstream.player.js index 5d7c691..049203a 100644 --- a/public/js/mstream.player.js +++ b/public/js/mstream.player.js @@ -50,7 +50,7 @@ var MSTREAMPLAYER = (function () { // setCachedSong(mstreamModule.positionCache.val + 1); clearTimeout(cacheTimer); - cacheTimer = setTimeout(function(){ setCachedSong(mstreamModule.positionCache.val + 1) } , 3000); + cacheTimer = setTimeout(function(){ setCachedSong(mstreamModule.positionCache.val + 1) } , 33000); } return true; @@ -164,7 +164,7 @@ var MSTREAMPLAYER = (function () { }else if( position === (mstreamModule.positionCache.val + 1) ){ // setCachedSong(mstreamModule.positionCache.val + 1); clearTimeout(cacheTimer); - cacheTimer = setTimeout(function(){ setCachedSong(mstreamModule.positionCache.val + 1) } , 3000); + cacheTimer = setTimeout(function(){ setCachedSong(mstreamModule.positionCache.val + 1) } , 33000); } } @@ -359,7 +359,7 @@ var MSTREAMPLAYER = (function () { // The timer prevents excessive cachign when the user starts button mashing // setCachedSong(position + 1); clearTimeout(cacheTimer); - cacheTimer = setTimeout(function(){ setCachedSong(position + 1) } , 3000); + cacheTimer = setTimeout(function(){ setCachedSong(position + 1) } , 33000); return true; }