Fix bug in expressInterestHelper: if interest.interestLifetime is null, use 4000.
diff --git a/js/tools/build/ndn-js-uncomp.js b/js/tools/build/ndn-js-uncomp.js
index e9d4dc4..469a0e5 100644
--- a/js/tools/build/ndn-js-uncomp.js
+++ b/js/tools/build/ndn-js-uncomp.js
@@ -7663,6 +7663,7 @@
// Set interest timer
var thisNDN = this;
if (closure != null) {
+ var timeoutMilliseconds = (interest.interestLifetime || 4000);
pitEntry.timerID = setTimeout(function() {
if (LOG > 3) console.log("Interest time out.");
@@ -7677,7 +7678,7 @@
// Raise closure callback
closure.upcall(Closure.UPCALL_INTEREST_TIMED_OUT, new UpcallInfo(thisNDN, interest, 0, null));
- }, interest.interestLifetime); // interestLifetime is in milliseconds.
+ }, timeoutMilliseconds);
//console.log(closure.timerID);
}