Author: toad
Date: 2007-12-04 19:02:45 +0000 (Tue, 04 Dec 2007)
New Revision: 16279

Modified:
   trunk/freenet/src/freenet/node/AnnounceSender.java
Log:
Send them

Modified: trunk/freenet/src/freenet/node/AnnounceSender.java
===================================================================
--- trunk/freenet/src/freenet/node/AnnounceSender.java  2007-12-04 19:02:27 UTC 
(rev 16278)
+++ trunk/freenet/src/freenet/node/AnnounceSender.java  2007-12-04 19:02:45 UTC 
(rev 16279)
@@ -379,6 +379,7 @@
                        } else {
                                if(logMINOR)
                                        Logger.minor(this, "Don't need the 
node");
+                               sendNotWanted();
                                // Okay, just route it.
                        }
                } catch (FSParseException e) {
@@ -397,6 +398,11 @@
                return true;
        }

+       private void sendNotWanted() throws NotConnectedException {
+               Message msg = DMT.createFNPOpennetAnnounceNodeNotWanted(uid);
+               source.sendAsync(msg, null, 0, this);
+       }
+
        private void sendOurRef(PeerNode next, byte[] ref) throws 
NotConnectedException {
                om.sendAnnouncementReply(uid, next, ref, this);
        }


Reply via email to