Silently fail if rate limit is hit and ahsn't been hit before
This commit is contained in:
parent
7b51417742
commit
e6e43ee92c
@ -139,6 +139,7 @@ public class LDGithub {
|
|||||||
if (line.contains("rate limit") && !DisguiseConfig.isHittingRateLimit()) {
|
if (line.contains("rate limit") && !DisguiseConfig.isHittingRateLimit()) {
|
||||||
DisguiseConfig.setHittingRateLimit(true);
|
DisguiseConfig.setHittingRateLimit(true);
|
||||||
DisguiseUtilities.getLogger().severe("Changed update checker to be every 36 hours due to rate limiting from this IP");
|
DisguiseUtilities.getLogger().severe("Changed update checker to be every 36 hours due to rate limiting from this IP");
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
} catch (Exception ex1) {
|
} catch (Exception ex1) {
|
||||||
DisguiseUtilities.getLogger().severe("Error when trying to read error stream! Inception!");
|
DisguiseUtilities.getLogger().severe("Error when trying to read error stream! Inception!");
|
||||||
|
Loading…
Reference in New Issue
Block a user