From 6d55d070e1532e580332e35d2c9d6f0ebc2e2b31 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Tue, 5 May 2020 21:33:40 +0200 Subject: [PATCH] check updates fix --- src/be/nikiroo/fanfix/Main.java | 5 ++++- src/be/nikiroo/fanfix/VersionCheck.java | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/be/nikiroo/fanfix/Main.java b/src/be/nikiroo/fanfix/Main.java index b49cf0fb..2e8b6d17 100644 --- a/src/be/nikiroo/fanfix/Main.java +++ b/src/be/nikiroo/fanfix/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/src/be/nikiroo/fanfix/VersionCheck.java b/src/be/nikiroo/fanfix/VersionCheck.java index fc631b0a..8b2a343f 100644 --- a/src/be/nikiroo/fanfix/VersionCheck.java +++ b/src/be/nikiroo/fanfix/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