Author: toad
Date: 2008-08-01 18:11:03 +0000 (Fri, 01 Aug 2008)
New Revision: 21561

Modified:
   trunk/freenet/src/freenet/node/updater/UpdateOverMandatoryManager.java
Log:
Make sure we request the jar over UOM after an hour, rather than waiting until 
a node connects and then asking that node.
Improves reliability of UOM again.
This and previous commit REQUIRE TESTING before being deployed.

Modified: trunk/freenet/src/freenet/node/updater/UpdateOverMandatoryManager.java
===================================================================
--- trunk/freenet/src/freenet/node/updater/UpdateOverMandatoryManager.java      
2008-08-01 18:08:13 UTC (rev 21560)
+++ trunk/freenet/src/freenet/node/updater/UpdateOverMandatoryManager.java      
2008-08-01 18:11:03 UTC (rev 21561)
@@ -243,6 +243,16 @@
                        synchronized(this) {
                                nodesOfferedMainJar.add(source);
                        }
+                       updateManager.node.getTicker().queueTimedJob(new 
Runnable() {
+
+                               public void run() {
+                                       if(updateManager.isBlown()) return;
+                                       if(!updateManager.isEnabled()) return;
+                                       if(updateManager.hasNewMainJar()) 
return;
+                                       maybeRequestMainJar();
+                               }
+                               
+                       }, REQUEST_MAIN_JAR_TIMEOUT+1);
                }
                }



Reply via email to