Merge pull request #154 from lbryio/remove-publish-timeout

Don't time out on Publish page
This commit is contained in:
alexliebowitz 2017-02-01 04:11:18 -05:00 committed by GitHub
commit 7e77f52976

View file

@ -306,10 +306,10 @@ lbry.getFileInfoWhenListed = function(name, callback, timeoutCallback, tryNum=0)
} }
} }
if (tryNum <= 200) { if (timeoutCallback && tryNum > 200) {
setTimeout(function() { lbry.getFileInfoWhenListed(name, callback, timeoutCallback, tryNum + 1) }, 250);
} else if (timeoutCallback) {
timeoutCallback(); timeoutCallback();
} else {
setTimeout(function() { lbry.getFileInfoWhenListed(name, callback, timeoutCallback, tryNum + 1) }, 250);
} }
}); });
} }