Cleaning NPT
diff --git a/macbook.conf b/macbook.conf
index ca312d5..7310e35 100644
--- a/macbook.conf
+++ b/macbook.conf
@@ -3,7 +3,7 @@
router-name /ndn/memphis.edu/netlab/macbook
ccnneighbor /ndn/memphis.edu/cs/gemeni
ccnneighbor /ndn/memphis.edu/cs/altair
-#ccnneighbor /ndn/memphis.edu/cs/pollux 141.225.11.132
+ccnneighbor /ndn/memphis.edu/cs/pollux 141.225.11.132
ccnname /ndn/memphis.edu/macbook/patterson
ccnname /ndn/memphis.edu/macbook/houston/
#------lsdb-synch-interval-----
diff --git a/nlsr_sync.c b/nlsr_sync.c
index 672341a..548890e 100644
--- a/nlsr_sync.c
+++ b/nlsr_sync.c
@@ -642,12 +642,13 @@
if (blockread > 0) {
res = ccn_seqw_write(w, data, blockread);
while (res == -1) {
+ ccn_run(temp_ccn,1);
res = ccn_seqw_write(w, data, blockread);
}
}
- ccn_seqw_close(w);
- ccn_run(temp_ccn, 100);
+
+ ccn_run(temp_ccn, 1);
ccn_charbuf_destroy(&name);
ccn_destroy(&temp_ccn);