Fix recurring sync prefix registration on every hello data
refs: #5157
Change-Id: Id0f77789976bd84720d2f96b549013b285e58978
diff --git a/src/nlsr.cpp b/src/nlsr.cpp
index cb24559..abf5c5f 100644
--- a/src/nlsr.cpp
+++ b/src/nlsr.cpp
@@ -56,7 +56,7 @@
[this] (const ndn::Name& name) {
m_helloProtocol.sendHelloInterest(name);
}))
- , m_onHelloDataValidated(m_helloProtocol.onHelloDataValidated.connect(
+ , m_onInitialHelloDataValidated(m_helloProtocol.onInitialHelloDataValidated.connect(
[this] (const ndn::Name& neighbor) {
auto it = m_adjacencyList.findAdjacent(neighbor);
if (it != m_adjacencyList.end()) {