From 0ff8dd7b84132e04e0725c1ab6eba530da703ada Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Sun, 17 Apr 2016 21:32:45 -0400 Subject: [PATCH] Remove load screen timeout (lagging is now reported by daemon) --- js/component/splash.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/js/component/splash.js b/js/component/splash.js index d76b24590..e07478971 100644 --- a/js/component/splash.js +++ b/js/component/splash.js @@ -25,7 +25,7 @@ var SplashScreen = React.createClass({ isLagging: false, } }, - updateStatus: function(checkNum=0, was_lagging=false) { + updateStatus: function(was_lagging=false) { lbry.getDaemonStatus((status) => { if (status.code == 'started') { this.props.onLoadDone(); @@ -37,11 +37,9 @@ var SplashScreen = React.createClass({ isLagging: status.is_lagging, }); - if (checkNum < 600) { - setTimeout(() => { - this.updateStatus(checkNum + 1, status.is_lagging); - }, 500); - } + setTimeout(() => { + this.updateStatus(status.is_lagging); + }, 500); }); }, componentDidMount: function() {