X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=apt_p2p_Khashmir%2Fktable.py;fp=apt_p2p_Khashmir%2Fktable.py;h=fe117eecca1d36fbece52160673a4baba2f2815d;hp=fb0c371c2385c74e7a38269b94860000c8eb64bf;hb=c8e3717344600f6a0acd71b67fc37c67c5f7d5d3;hpb=7b1167d8ce780312d3689c9309c7e9c64060c085 diff --git a/apt_p2p_Khashmir/ktable.py b/apt_p2p_Khashmir/ktable.py index fb0c371..fe117ee 100644 --- a/apt_p2p_Khashmir/ktable.py +++ b/apt_p2p_Khashmir/ktable.py @@ -169,11 +169,10 @@ class KTable: # It responded, so update it node.updateLastSeen() # move node to end of bucket - xnode = self.buckets[i].l[it] del(self.buckets[i].l[it]) # note that we removed the original and replaced it with the new one # utilizing this nodes new contact info - self.buckets[i].l.append(xnode) + self.buckets[i].l.append(node) self.buckets[i].touch() return