Remove load screen timeout (lagging is now reported by daemon)

This commit is contained in:
Alex Liebowitz 2016-04-17 21:32:45 -04:00
parent 8267646d93
commit 0ff8dd7b84

View file

@ -25,7 +25,7 @@ var SplashScreen = React.createClass({
isLagging: false, isLagging: false,
} }
}, },
updateStatus: function(checkNum=0, was_lagging=false) { updateStatus: function(was_lagging=false) {
lbry.getDaemonStatus((status) => { lbry.getDaemonStatus((status) => {
if (status.code == 'started') { if (status.code == 'started') {
this.props.onLoadDone(); this.props.onLoadDone();
@ -37,11 +37,9 @@ var SplashScreen = React.createClass({
isLagging: status.is_lagging, isLagging: status.is_lagging,
}); });
if (checkNum < 600) { setTimeout(() => {
setTimeout(() => { this.updateStatus(status.is_lagging);
this.updateStatus(checkNum + 1, status.is_lagging); }, 500);
}, 500);
}
}); });
}, },
componentDidMount: function() { componentDidMount: function() {