commit | 47aaa8c853c4af91808dadd6790647d1b4c606b4 | [log] [tgz] |
---|---|---|
author | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Mon Jan 28 15:53:05 2013 -0800 |
committer | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Mon Jan 28 15:53:05 2013 -0800 |
tree | 3fe0c2e1b33a48b8c6f0f308ae09d278488f59e5 | |
parent | 47cf2efc872c57acf3770f30df9fa5ef939ae84d [diff] |
change the execute in ExecutorClosure
diff --git a/ccnx/ccnx-closure.cpp b/ccnx/ccnx-closure.cpp index 5abcb3e..57b520a 100644 --- a/ccnx/ccnx-closure.cpp +++ b/ccnx/ccnx-closure.cpp
@@ -73,7 +73,10 @@ void ExecutorClosure::execute(Name name, PcoPtr content) { - Closure::runDataCallback(name, content); + if (!m_dataCallback.empty ()) + { + m_dataCallback (name, content); + } } ExecutorInterestClosure::ExecutorInterestClosure(const InterestCallback &callback, ExecutorPtr executor)