Merge pull request #166 from lbryio/fix-watch-page-status-check

Fix status check on Watch page
This commit is contained in:
alexliebowitz 2017-02-15 17:19:35 -05:00 committed by GitHub
commit 49720be076

View file

@ -20,7 +20,7 @@ var WatchPage = React.createClass({
},
updateLoadStatus: function() {
lbry.getFileStatus(this.props.name, (status) => {
if (!status || status.code != 'running' || status.written_bytes == 0) {
if (!status || ['running', 'stopped'].includes(status.code) || status.written_bytes == 0) {
// Download hasn't started yet, so update status message (if available) then try again
if (status) {
this.setState({