Skip to content

Commit

Permalink
Increase network timeout from 20s to 120s
Browse files Browse the repository at this point in the history
Because mojang server downloads
  • Loading branch information
C0D3-M4513R committed Mar 14, 2024
1 parent f1d1b3a commit 568cd6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static void downloadFile(String URL, File f, @Nullable String expectedHas
e.printStackTrace();
}
return null;
}, downloadSrvc).get(20, TimeUnit.SECONDS);
}, downloadSrvc).get(120, TimeUnit.SECONDS);
rbc.close();
String hash = HashUtils.getHash(f, hashFormat);
if(expectedHash != null && !hash.equals(expectedHash.toLowerCase())) {
Expand Down

0 comments on commit 568cd6c

Please sign in to comment.