X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=apt_p2p_Khashmir%2Fktable.py;h=864dfe50feaadf1732f3319e46f48d68403efdd9;hb=146f1044e3661716ec4689d3ea7e6ab4ab38ae77;hp=3e60f5c37d0156e6f51c0f9d3543e689012424f4;hpb=b063e349bff01a77f21a8109741c4577dd5863a8;p=quix0rs-apt-p2p.git diff --git a/apt_p2p_Khashmir/ktable.py b/apt_p2p_Khashmir/ktable.py index 3e60f5c..864dfe5 100644 --- a/apt_p2p_Khashmir/ktable.py +++ b/apt_p2p_Khashmir/ktable.py @@ -226,6 +226,12 @@ class KTable: n = self.buckets[i].l[it] tstamp = n.lastSeen n.updateLastSeen() + + # Move the node to the end and touch the bucket + del(self.buckets[i].l[it]) + self.buckets[i].l.append(n) + self.buckets[i].touch() + return tstamp def invalidateNode(self, n):