Correcting wrong assert in ndn::App. Actually, making this assert to just print an error message instead.
diff --git a/apps/ndn-app.cc b/apps/ndn-app.cc
index 5b362d0..a46c8ba 100644
--- a/apps/ndn-app.cc
+++ b/apps/ndn-app.cc
@@ -155,9 +155,16 @@
GetNode ()->GetObject<ForwardingStrategy> ()->RemoveFace (m_face); // notify that face is removed
// step 3. Destroy face
- NS_ASSERT_MSG (m_face->GetReferenceCount ()==2,
- "At this point, nobody else should have referenced this face, but we have "
- << m_face->GetReferenceCount () << " references");
+ if (m_face->GetReferenceCount () != 1)
+ {
+ NS_LOG_ERROR ("Please a bug report on https://github.com/NDN-Routing/ndnSIM/issues:");
+ NS_LOG_ERROR ("At this point, nobody else should have referenced this face, but we have "
+ << m_face->GetReferenceCount () << " references");
+
+ }
+ // NS_ASSERT_MSG (m_face->GetReferenceCount ()==2,
+ // "At this point, nobody else should have referenced this face, but we have "
+ // << m_face->GetReferenceCount () << " references");
m_face = 0;
}