Browse Source

Merge branch 'crashey' of git://github.com/Arceliar/cjdns into crashey

Caleb James DeLisle 9 years ago
parent
commit
b99be9a3de
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dht/dhtcore/Janitor.c

+ 2 - 1
dht/dhtcore/Janitor.c

@@ -555,7 +555,8 @@ static bool tryLinkMill(struct Janitor_pvt* janitor)
     struct Address addr = { .protocolVersion = 0 };
     while (RumorMill_getNode(janitor->pub.linkMill, &addr)) {
         if (!canPing(janitor, addr.path)) { continue; }
-        // ping a node from the externally accessible queue
+        if (!NodeStore_nodeForAddr(janitor->nodeStore, addr.ip6.bytes)) { continue; }
+        // test an unknown link to a known node
         getPeersMill(janitor, &addr);
         debugAddr(janitor, "Pinging possible node from link-finding RumorMill", &addr);
         return true;