]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - actions.py
don't return duplicates if we have a key in our store
[quix0rs-apt-p2p.git] / actions.py
index 0a6062f0ee136f21a35af19e29d0b07ed1bdbb93..945832970cf3a5467a50b3d1d4211cea3e7648c1 100644 (file)
@@ -165,8 +165,11 @@ class GetValue(FindNode):
            reactor.callFromThread(self.callback,[])
     
     ## get value
-    def goWithNodes(self, nodes):
+    def goWithNodes(self, nodes, found=None):
        self.results = {}
+       if found:
+           for n in found:
+               self.results[n] = 1
        for node in nodes:
            if node.id == self.table.node.id:
                continue