Changing Closure API. No need for so many pointers...
diff --git a/src/fetch-manager.cc b/src/fetch-manager.cc
index 931d2c1..2b43c62 100644
--- a/src/fetch-manager.cc
+++ b/src/fetch-manager.cc
@@ -90,7 +90,7 @@
}
void
-FetchManager::NoDataTimeout (Fetcher &fetcher)
+FetchManager::DidNoDataTimeout (Fetcher &fetcher)
{
fetcher.m_forwardingHint = Ccnx::Name ("/ndn/broadcast");
fetcher.m_active = false;
@@ -99,19 +99,18 @@
m_currentParallelFetches --;
// no need to do anything with the m_fetchList
}
-
+
ScheduleFetches ();
}
void
-FetchManager::FetchComplete (Fetcher &fetcher)
+FetchManager::DidFetchComplete (Fetcher &fetcher)
{
- fetcher.m_active = false;
{
unique_lock<mutex> lock (m_parellelFetchMutex);
m_currentParallelFetches --;
m_fetchList.erase_and_dispose (FetchList::s_iterator_to (fetcher), fetcher_disposer ());
}
-
+
// ? do something else
}