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;
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user