diff --git a/libp2p/NodeTable.cpp b/libp2p/NodeTable.cpp index fe2940b30..35cfda64b 100644 --- a/libp2p/NodeTable.cpp +++ b/libp2p/NodeTable.cpp @@ -432,7 +432,7 @@ void NodeTable::onReceived(UDPSocketFace*, bi::udp::endpoint const& _from, bytes bool found = false; EvictionTimeout evictionEntry; DEV_GUARDED(x_evictions) - for (auto it = m_evictions.begin(); it != m_evictions.end();) + for (auto it = m_evictions.begin(); it != m_evictions.end(); ++it) if (it->first.first == nodeid && it->first.second > std::chrono::steady_clock::now()) { found = true;