KRPC calls callback with the response dictionary by itself.
[quix0rs-apt-p2p.git] / apt_p2p_Khashmir / knode.py
index 1fbdbc3302521f62efa406dc2daabd52fb7e8a3f..9acf9b777392857cfa247dd4d40505ba3338abac 100644 (file)
@@ -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."