Browse Source

fixed m_pubkDiscoverPings guard

cl-refactor
arkpar 10 years ago
parent
commit
b7683a8c65
  1. 2
      libp2p/NodeTable.cpp

2
libp2p/NodeTable.cpp

@ -95,7 +95,7 @@ shared_ptr<NodeEntry> NodeTable::addNode(Node const& _node, NodeRelation _relati
{
DEV_GUARDED(x_nodes)
clog(NodeTableConnect) << "Sending public key discovery Ping to" << (bi::udp::endpoint)_node.endpoint << "(Advertising:" << (bi::udp::endpoint)m_node.endpoint << ")";
DEV_GUARDED(x_pubkDiscoverPings);
DEV_GUARDED(x_pubkDiscoverPings)
m_pubkDiscoverPings[_node.endpoint.address] = std::chrono::steady_clock::now();
ping(_node.endpoint);
return move(shared_ptr<NodeEntry>());

Loading…
Cancel
Save