Merge pull request #154 from lbryio/remove-publish-timeout
Don't time out on Publish page
This commit is contained in:
commit
7e77f52976
1 changed files with 3 additions and 3 deletions
|
@ -306,10 +306,10 @@ lbry.getFileInfoWhenListed = function(name, callback, timeoutCallback, tryNum=0)
|
|||
}
|
||||
}
|
||||
|
||||
if (tryNum <= 200) {
|
||||
setTimeout(function() { lbry.getFileInfoWhenListed(name, callback, timeoutCallback, tryNum + 1) }, 250);
|
||||
} else if (timeoutCallback) {
|
||||
if (timeoutCallback && tryNum > 200) {
|
||||
timeoutCallback();
|
||||
} else {
|
||||
setTimeout(function() { lbry.getFileInfoWhenListed(name, callback, timeoutCallback, tryNum + 1) }, 250);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue