Increase auto-update timeout to 10 seconds #64

This commit is contained in:
4pr0n 2014-06-12 00:38:19 -07:00
parent 8b2d30496d
commit 2307dc454a

View File

@ -42,8 +42,9 @@ public class UpdateUtils {
Document doc = null; Document doc = null;
try { try {
doc = Jsoup.connect(UpdateUtils.updateJsonURL) doc = Jsoup.connect(UpdateUtils.updateJsonURL)
.ignoreContentType(true) .timeout(10 * 1000)
.get(); .ignoreContentType(true)
.get();
} catch (IOException e) { } catch (IOException e) {
logger.error("Error while fetching update: ", e); logger.error("Error while fetching update: ", e);
JOptionPane.showMessageDialog(null, JOptionPane.showMessageDialog(null,