check updates fix
authorNiki Roo <niki@nikiroo.be>
Tue, 5 May 2020 19:33:40 +0000 (21:33 +0200)
committerNiki Roo <niki@nikiroo.be>
Tue, 5 May 2020 19:33:40 +0000 (21:33 +0200)
Main.java
VersionCheck.java

index b49cf0fb13e38338c293166027882e3df3876e67..2e8b6d17cdc7dc99b17353df55aefd469ef4a0a8 100644 (file)
--- 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.
         * <p>
         * For this, it will simply forward the call to
         * {@link Main#checkUpdates(String)} with a value of "nikiroo/fanfix".
+        * <p>
+        * 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
         */
index fc631b0a6d1f9d8326457606ff38e9884b5357b3..8b2a343f3cef331a2dbc059306586d6c2eaa83b7 100644 (file)
@@ -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) {
                                        }