Increase auto-update timeout to 10 seconds #64
This commit is contained in:
parent
8b2d30496d
commit
2307dc454a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user