From d363d2f788b502b209d017f32d4d2298d27767ab Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 28 Oct 2013 19:01:13 -0200 Subject: [PATCH] remove unneeded optimization: m_data_callback is called multiple times (for every reply) so asking ourselves doesn't hurt. this might fix the assertion which is failing on observer destructor. --- libtorrent/src/kademlia/find_data.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libtorrent/src/kademlia/find_data.cpp b/libtorrent/src/kademlia/find_data.cpp index 2bcc08d1..1ef1f05b 100644 --- a/libtorrent/src/kademlia/find_data.cpp +++ b/libtorrent/src/kademlia/find_data.cpp @@ -206,10 +206,6 @@ bool find_data::invoke(observer_ptr o) return false; } - // im not going to ask trackers from myself - if( o->id() == m_node.nid() ) - return false; - entry e; e["z"] = "q"; e["q"] = "getData"; // "getPeers"