Silently fail if rate limit is hit and ahsn't been hit before

This commit is contained in:
libraryaddict 2021-01-08 16:50:21 +13:00
parent 7b51417742
commit e6e43ee92c

View File

@ -139,6 +139,7 @@ public class LDGithub {
if (line.contains("rate limit") && !DisguiseConfig.isHittingRateLimit()) {
DisguiseConfig.setHittingRateLimit(true);
DisguiseUtilities.getLogger().severe("Changed update checker to be every 36 hours due to rate limiting from this IP");
return null;
}
} catch (Exception ex1) {
DisguiseUtilities.getLogger().severe("Error when trying to read error stream! Inception!");