From 98b95fb81566ca8b04c8d891a02c8019d8bed63d Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Tue, 5 May 2020 21:33:40 +0200 Subject: [PATCH] check updates fix --- Main.java | 5 ++++- VersionCheck.java | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Main.java b/Main.java index b49cf0f..2e8b6d1 100644 --- a/Main.java +++ b/Main.java @@ -687,10 +687,13 @@ public class Main { } /** - * Will check if updates are available. + * Will check if updates are available, synchronously. *

* For this, it will simply forward the call to * {@link Main#checkUpdates(String)} with a value of "nikiroo/fanfix". + *

+ * You may want to override it so you call the forward method with the right + * parameters (or also if you want it to be asynchronous). * * @return the newer version information or NULL if nothing new */ diff --git a/VersionCheck.java b/VersionCheck.java index fc631b0..8b2a343 100644 --- a/VersionCheck.java +++ b/VersionCheck.java @@ -127,7 +127,8 @@ public class VersionCheck { InputStream in = null; for (String url : new String[] { urlFrBE, urlFr, urlDefault }) { try { - in = Instance.getInstance().getCache().open(new URL(url), null, false); + in = Instance.getInstance().getCache().openNoCache( + new URL(url), null, null, null, null); break; } catch (IOException e) { } -- 2.27.0