upcall should return Closure.RESULT_OK.
diff --git a/js/NDN.js b/js/NDN.js
index 1202f08..05577b8 100644
--- a/js/NDN.js
+++ b/js/NDN.js
@@ -174,10 +174,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 = {
@@ -196,8 +196,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.
}
}
}