Author: toad
Date: 2008-09-04 11:11:16 +0000 (Thu, 04 Sep 2008)
New Revision: 22400

Modified:
   trunk/freenet/src/freenet/node/Announcer.java
Log:
Doh, need to clear sentAnnouncements before calling maybeSendAnnouncement().


Modified: trunk/freenet/src/freenet/node/Announcer.java
===================================================================
--- trunk/freenet/src/freenet/node/Announcer.java       2008-09-04 10:46:57 UTC 
(rev 22399)
+++ trunk/freenet/src/freenet/node/Announcer.java       2008-09-04 11:11:16 UTC 
(rev 22400)
@@ -496,8 +496,10 @@
                                                        }

                                                }, COOLING_OFF_PERIOD);
-                                       } else if(runningAnnouncements == 0)
+                                       } else if(runningAnnouncements == 0) {
+                                               sentAnnouncements = 0;
                                                announceNow = true;
+                                       }
                                }
                                // If it takes more than COOLING_OFF_PERIOD to 
disconnect, we might not be able to reannounce to this
                                // node. However, we can't reannounce to it 
anyway until announcedTo is cleared, which probably will


Reply via email to