Compare commits

...

2 Commits

Author SHA1 Message Date
Ajay Ramachandran
b858971b66 Increase version number 2021-02-24 21:10:05 -05:00
Ajay Ramachandran
383fe59bc0 Lower retry frequency
(cherry picked from commit 3927fe5630)
2021-02-24 21:08:54 -05:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "__MSG_fullName__",
"short_name": "SponsorBlock",
"version": "2.0.12.3",
"version": "2.0.12.4",
"default_locale": "en",
"description": "__MSG_Description__",
"content_scripts": [{

View File

@@ -647,12 +647,12 @@ async function sponsorsLookup(id: string) {
sponsorLookupRetries = 0;
} else if (response?.status === 404) {
retryFetch(id);
} else if (sponsorLookupRetries < 90 && !recheckStarted) {
} else if (sponsorLookupRetries < 15 && !recheckStarted) {
recheckStarted = true;
//TODO lower when server becomes better (back to 1 second)
//some error occurred, try again in a second
setTimeout(() => sponsorsLookup(id), 5000 + Math.random() * 15000);
setTimeout(() => sponsorsLookup(id), 5000 + Math.random() * 15000 + 5000 * sponsorLookupRetries);
sponsorLookupRetries++;
}