upcall should return Closure.RESULT_OK.
diff --git a/js/ccnxProtocol/components/ccnxProtocolService.js b/js/ccnxProtocol/components/ccnxProtocolService.js
index c7d4d1e..42dd1f6 100644
--- a/js/ccnxProtocol/components/ccnxProtocolService.js
+++ b/js/ccnxProtocol/components/ccnxProtocolService.js
@@ -47,7 +47,7 @@
if (!(kind == Closure.UPCALL_CONTENT ||
kind == Closure.UPCALL_CONTENT_UNVERIFIED))
// The upcall is not for us.
- return;
+ return Closure.RESULT_ERR;
var contentObject = upcallInfo.contentObject;
@@ -84,6 +84,7 @@
}
contentListener.onReceivedContent(content, contentType, contentCharset);
+ return Closure.RESULT_OK;
};
ndn.expressInterest(new Name(name), new ContentClosure());