From e6e43ee92cb40ab8f793f153ab43a7e081ef4975 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 8 Jan 2021 16:50:21 +1300 Subject: [PATCH] Silently fail if rate limit is hit and ahsn't been hit before --- .../me/libraryaddict/disguise/utilities/updates/LDGithub.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/updates/LDGithub.java b/src/main/java/me/libraryaddict/disguise/utilities/updates/LDGithub.java index 4641da73..a563048c 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/updates/LDGithub.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/updates/LDGithub.java @@ -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!");