Author: nextgens
Date: 2006-05-22 13:59:07 +0000 (Mon, 22 May 2006)
New Revision: 8830

Modified:
   trunk/freenet/src/freenet/node/NodeUpdater.java
Log:
NodeUpdater:

Doh, we need to probe for new versions

Modified: trunk/freenet/src/freenet/node/NodeUpdater.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeUpdater.java     2006-05-22 09:31:03 UTC 
(rev 8829)
+++ trunk/freenet/src/freenet/node/NodeUpdater.java     2006-05-22 13:59:07 UTC 
(rev 8830)
@@ -65,7 +65,7 @@
        public void set(boolean val) throws InvalidConfigValueException {
                if(val == get()) return;
                // Good idea to prevent it ?
-               throw new InvalidConfigValueException("Cannot be updated on the 
fly for security concerns");
+               throw new InvalidConfigValueException("Cannot be updated on the 
fly for security reasons");
        }
 }

@@ -179,7 +179,9 @@
                this.ctx = ctx;

                try{            
-                       ctx.uskManager.subscribe(USK.create(URI), this, true);
+                       USK myUsk=USK.create(URI);
+                       ctx.uskManager.subscribe(myUsk, this,   true);
+                       ctx.uskManager.startTemporaryBackgroundFetcher(myUsk);
                }catch(MalformedURLException e){
                        Logger.error(this,"The auto-update URI isn't valid and 
can't be used");
                        this.hasBeenBlown=true;


Reply via email to