forked from premiere/premiere-libtorrent
Merge pull request #113 from thomas-yuan/dht_direct
Remove unnecessary selection statements.
This commit is contained in:
commit
d2e2703680
|
@ -83,16 +83,8 @@ struct direct_observer : observer
|
|||
if (flags & flag_done) return;
|
||||
flags |= flag_done;
|
||||
bdecode_node e;
|
||||
if (flags & flag_ipv6_address)
|
||||
{
|
||||
msg m(e, target_ep());
|
||||
static_cast<direct_traversal*>(algorithm())->invoke_cb(m);
|
||||
}
|
||||
else
|
||||
{
|
||||
msg m(e, target_ep());
|
||||
static_cast<direct_traversal*>(algorithm())->invoke_cb(m);
|
||||
}
|
||||
msg m(e, target_ep());
|
||||
static_cast<direct_traversal*>(algorithm())->invoke_cb(m);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue