Revert "change the execute in ExecutorClosure"
This reverts commit 47aaa8c853c4af91808dadd6790647d1b4c606b4.
diff --git a/ccnx/ccnx-closure.cpp b/ccnx/ccnx-closure.cpp
index 57b520a..5abcb3e 100644
--- a/ccnx/ccnx-closure.cpp
+++ b/ccnx/ccnx-closure.cpp
@@ -73,10 +73,7 @@
void
ExecutorClosure::execute(Name name, PcoPtr content)
{
- if (!m_dataCallback.empty ())
- {
- m_dataCallback (name, content);
- }
+ Closure::runDataCallback(name, content);
}
ExecutorInterestClosure::ExecutorInterestClosure(const InterestCallback &callback, ExecutorPtr executor)