mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-08 22:08:00 +00:00
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.
This commit is contained in:
parent
40803b910c
commit
d363d2f788
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user