projects
/
quix0rs-apt-p2p.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
KRPC calls callback with the response dictionary by itself.
[quix0rs-apt-p2p.git]
/
apt_p2p_Khashmir
/
knode.py
diff --git
a/apt_p2p_Khashmir/knode.py
b/apt_p2p_Khashmir/knode.py
index 1fbdbc3302521f62efa406dc2daabd52fb7e8a3f..9acf9b777392857cfa247dd4d40505ba3338abac 100644
(file)
--- a/
apt_p2p_Khashmir/knode.py
+++ b/
apt_p2p_Khashmir/knode.py
@@
-13,7
+13,7
@@
class KNodeBase(Node):
def checkSender(self, dict):
"""Check the sender's info to make sure it meets expectations."""
try:
- senderid = dict['
rsp']['
id']
+ senderid = dict['id']
except KeyError:
log.msg("No peer id in response")
raise Exception, "No peer id in response."