fixed problem when sending messages to oneself fails in the dht

This commit is contained in:
Arvid Norberg 2006-10-27 01:56:01 +00:00
parent 6f939b565b
commit 7bff835cdd
1 changed files with 3 additions and 0 deletions

View File

@ -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())
{