From 2307dc454a0b14d1bf1bf0130a20659215fa75ad Mon Sep 17 00:00:00 2001 From: 4pr0n Date: Thu, 12 Jun 2014 00:38:19 -0700 Subject: [PATCH] Increase auto-update timeout to 10 seconds #64 --- src/main/java/com/rarchives/ripme/ui/UpdateUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java b/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java index f96531fa..e3c9787f 100644 --- a/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java +++ b/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java @@ -42,8 +42,9 @@ public class UpdateUtils { Document doc = null; try { doc = Jsoup.connect(UpdateUtils.updateJsonURL) - .ignoreContentType(true) - .get(); + .timeout(10 * 1000) + .ignoreContentType(true) + .get(); } catch (IOException e) { logger.error("Error while fetching update: ", e); JOptionPane.showMessageDialog(null,