src: fix prefix advertise runtime error
Don't schedule Hello after receiving face changes in dataset,
let it be on its schedule. Also don't schedule routing calc (HR)
or AdjLsa (LS) let them be scheduled on Hello Data.
refs: #4215
Change-Id: I5c3881943f83b2f7683316fa3e22e6c280b6b64d
diff --git a/src/adjacency-list.cpp b/src/adjacency-list.cpp
index ccbea1b..6f83b1a 100644
--- a/src/adjacency-list.cpp
+++ b/src/adjacency-list.cpp
@@ -263,9 +263,8 @@
{
return std::find_if(m_adjList.begin(),
m_adjList.end(),
- [&faceUri] (const Adjacent& adj) {
- return faceUri == adj.getFaceUri();
- });
+ std::bind(&Adjacent::compareFaceUri,
+ _1, faceUri));
}
uint64_t