Commit 0b7f3ed6 authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

Only notify injector pinger when injector was contacted directly.

parent ed49cda0
......@@ -583,12 +583,11 @@ GenericStream Bep5Client::connect( asio::yield_context yield
, " ec:", ec.message());
} else {
_last_working_ep = ret_ep;
if (_injector_pinger) {
if (ret_target == Target::injectors)
if (ret_target == Target::injectors) {
if (_injector_pinger)
_DEBUG("Connected to injector peer directly; rep:", ret_ep);
else if (ret_target == Target::helpers)
} else if (ret_target == Target::helpers)
_DEBUG("Connected to injector via helper peer (bridge); rep:", ret_ep);
assert(0 && "Invalid peer type");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment