mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 21:17:20 +03:00
Increased retry timeout when the server is down.
This commit is contained in:
@@ -430,8 +430,9 @@ function sponsorsLookup(id, channelIDPromise) {
|
||||
} else if (xmlhttp.readyState == 4 && sponsorLookupRetries < 90 && !recheckStarted) {
|
||||
recheckStarted = true;
|
||||
|
||||
//TODO lower when server becomes better (back to 1 second)
|
||||
//some error occurred, try again in a second
|
||||
setTimeout(() => sponsorsLookup(id), 1000);
|
||||
setTimeout(() => sponsorsLookup(id), 10000);
|
||||
|
||||
sponsorLookupRetries++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user