upcall should return Closure.RESULT_OK.
diff --git a/js/ccnxProtocol/modules/ndn-js.jsm b/js/ccnxProtocol/modules/ndn-js.jsm
index a432819..1532ee5 100644
--- a/js/ccnxProtocol/modules/ndn-js.jsm
+++ b/js/ccnxProtocol/modules/ndn-js.jsm
@@ -264,10 +264,10 @@
interest = new Interest(name);
if (template != null) {
// TODO: Exactly what do we copy from template?
- interest.InterestLifetime = template.InterestLifetime;
+ interest.interestLifetime = template.interestLifetime;
}
else
- interest.InterestLifetime = 4200;
+ interest.interestLifetime = 4200;
var outputHex = encodeToHexInterest(interest);
var dataListener = {
@@ -286,8 +286,9 @@
}
// TODO: verify the content object and set kind to UPCALL_CONTENT.
- closure.upcall(Closure.UPCALL_CONTENT_UNVERIFIED,
- new UpcallInfo(this, interest, 0, co))
+ var result = closure.upcall(Closure.UPCALL_CONTENT_UNVERIFIED,
+ new UpcallInfo(this, interest, 0, co));
+ // TODO: Check result for Closure.RESULT_OK, etc.
}
}
}