Fix some bugs in the pinging and ID checking.
[quix0rs-apt-p2p.git] / apt_p2p_Khashmir / knode.py
index 2e2c9b64392b9caf1eb3be2e11258ce225187667..36d77bdc99ea9a872f09609cad81db2f6af73cf8 100644 (file)
@@ -21,6 +21,7 @@ class KNodeBase(Node):
             if self.id != NULL_ID and senderid != self.id:
                 log.msg("Got response from different node than expected.")
                 self.table.invalidateNode(self)
+                raise Exception, "Node ID has changed"
                 
         return dict