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;
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,