From 7bff835cddabb399468cc442e83010eaae929cdb Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 27 Oct 2006 01:56:01 +0000 Subject: [PATCH] fixed problem when sending messages to oneself fails in the dht --- src/kademlia/routing_table.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kademlia/routing_table.cpp b/src/kademlia/routing_table.cpp index 66900cc42..32f7514f2 100644 --- a/src/kademlia/routing_table.cpp +++ b/src/kademlia/routing_table.cpp @@ -199,6 +199,9 @@ void routing_table::node_failed(node_id const& id) , bind(&node_entry::id, _1), id)); if (i == b.end()) return; + + // if messages to ourself fails, ignore it + if (bucket_index == 0) return; if (rb.empty()) {