Browse Source

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.
miguelfreitas
Miguel Freitas 11 years ago
parent
commit
d363d2f788
  1. 4
      libtorrent/src/kademlia/find_data.cpp

4
libtorrent/src/kademlia/find_data.cpp

@ -206,10 +206,6 @@ bool find_data::invoke(observer_ptr o)
return false; return false;
} }
// im not going to ask trackers from myself
if( o->id() == m_node.nid() )
return false;
entry e; entry e;
e["z"] = "q"; e["z"] = "q";
e["q"] = "getData"; // "getPeers" e["q"] = "getData"; // "getPeers"

Loading…
Cancel
Save