projects
/
quix0rs-apt-p2p.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b1167d
)
Add new node to table when refreshing old node.
author
Cameron Dale
<camrdale@gmail.com>
Sat, 8 Mar 2008 00:06:57 +0000
(16:06 -0800)
committer
Cameron Dale
<camrdale@gmail.com>
Sat, 8 Mar 2008 00:06:57 +0000
(16:06 -0800)
Fixes a bug introduced by commit:
6ce38471
: fix peer update problem connection refused in store value
apt_p2p_Khashmir/ktable.py
patch
|
blob
|
history
diff --git
a/apt_p2p_Khashmir/ktable.py
b/apt_p2p_Khashmir/ktable.py
index fb0c371c2385c74e7a38269b94860000c8eb64bf..fe117eecca1d36fbece52160673a4baba2f2815d 100644
(file)
--- 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(
x
node)
+ self.buckets[i].l.append(node)
self.buckets[i].touch()
return