From: Niki Roo Date: Tue, 5 May 2020 19:33:40 +0000 (+0200) Subject: check updates fix X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=98b95fb81566ca8b04c8d891a02c8019d8bed63d;p=nikiroo-utils.git check updates fix --- 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) { }