src+tools: use segment fetcher start

jenkins: re-compile ChronoSync on ndn-cxx change

refs: #4464

Change-Id: Ia627e00b8f13bad0068e213a6019f62a84cad41a
diff --git a/tools/nlsrc.cpp b/tools/nlsrc.cpp
index 3db6215..1228bc8 100644
--- a/tools/nlsrc.cpp
+++ b/tools/nlsrc.cpp
@@ -256,12 +256,9 @@
 
   ndn::Interest interest(command);
 
-  ndn::util::SegmentFetcher::fetch(m_face,
-                                   interest,
-                                   m_validator,
-                                   std::bind(&Nlsrc::onFetchSuccess<T>,
-                                             this, _1, recordLsa),
-                                   std::bind(&Nlsrc::onTimeout, this, _1, _2));
+  auto fetcher = ndn::util::SegmentFetcher::start(m_face, interest, m_validator);
+  fetcher->onComplete.connect(std::bind(&Nlsrc::onFetchSuccess<T>, this, _1, recordLsa));
+  fetcher->onError.connect(std::bind(&Nlsrc::onTimeout, this, _1, _2));
 }
 
 template <class T>
@@ -272,12 +269,9 @@
 
   ndn::Interest interest(command);
 
-  ndn::util::SegmentFetcher::fetch(m_face,
-                                   interest,
-                                   m_validator,
-                                   std::bind(&Nlsrc::onFetchSuccess<T>,
-                                             this, _1, recordDataset),
-                                   std::bind(&Nlsrc::onTimeout, this, _1, _2));
+  auto fetcher = ndn::util::SegmentFetcher::start(m_face, interest, m_validator);
+  fetcher->onComplete.connect(std::bind(&Nlsrc::onFetchSuccess<T>, this, _1, recordDataset));
+  fetcher->onError.connect(std::bind(&Nlsrc::onTimeout, this, _1, _2));
 }
 
 template <class T>