Browse Source

Merge branch 'develop' of github.com:ethereum/cpp-ethereum into develop

cl-refactor
Gav Wood 10 years ago
parent
commit
df08af1fa0
  1. 6
      libp2p/Host.cpp

6
libp2p/Host.cpp

@ -475,9 +475,11 @@ void Host::connect(std::shared_ptr<Peer> const& _p)
if (!!m_nodeTable && !m_nodeTable->haveNode(_p->id)) if (!!m_nodeTable && !m_nodeTable->haveNode(_p->id))
{ {
clog(NetWarn) << "Aborted connect. Node not in node table."; // connect was attempted, so try again by adding to node table
m_nodeTable->addNode(*_p.get()); m_nodeTable->addNode(*_p.get());
return; // abort unless peer is required
if (!_p->required)
return;
} }
// prevent concurrently connecting to a node // prevent concurrently connecting to a node

Loading…
Cancel
Save