diff --git a/src/ripple/peerfinder/impl/Logic.h b/src/ripple/peerfinder/impl/Logic.h index a4c90d3b1..e897ccffc 100644 --- a/src/ripple/peerfinder/impl/Logic.h +++ b/src/ripple/peerfinder/impl/Logic.h @@ -201,7 +201,7 @@ public: if (result.second) { if (m_journal.debug) m_journal.debug << beast::leftw (18) << - "Logic add fixed" << "'" << name << + "Logic add fixed '" << name << "' at " << remote_address; return; } @@ -220,8 +220,6 @@ public: typename SharedState::Access state (m_state); Slots::iterator const iter (state->slots.find (remoteAddress)); - SlotImp& slot (*iter->second); - if (iter == state->slots.end()) { // The slot disconnected before we finished the check @@ -231,6 +229,7 @@ public: return; } + SlotImp& slot (*iter->second); slot.checked = true; slot.connectivityCheckInProgress = false;