From ad27e237675ec6026fab15bc497e066dacc0f3eb Mon Sep 17 00:00:00 2001 From: Maddie <52103563+maddie480@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:00:58 +0200 Subject: [PATCH] Revert change to retry attempt count --- .../ovh/maddie480/everest/updatechecker/ConnectionUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ovh/maddie480/everest/updatechecker/ConnectionUtils.java b/src/main/java/ovh/maddie480/everest/updatechecker/ConnectionUtils.java index 05c2373..c27b1c1 100755 --- a/src/main/java/ovh/maddie480/everest/updatechecker/ConnectionUtils.java +++ b/src/main/java/ovh/maddie480/everest/updatechecker/ConnectionUtils.java @@ -77,7 +77,7 @@ public static InputStream openStreamWithTimeout(String url) throws IOException { * @throws IOException If the task failed 3 times */ public static T runWithRetry(IOSupplier task) throws IOException { - for (int i = 1; i < 10; i++) { + for (int i = 1; i < 3; i++) { try { return task.get(); } catch (IOException e) {