separate ccnx handle for sync and app data
diff --git a/model/sync-app-socket.cc b/model/sync-app-socket.cc
index fb6779d..2f1d174 100644
--- a/model/sync-app-socket.cc
+++ b/model/sync-app-socket.cc
@@ -29,13 +29,12 @@
{
SyncAppSocket::SyncAppSocket (const string &syncPrefix, CcnxWrapper::DataCallback dataCallback)
- : m_ccnxHandle (new CcnxWrapper())
- , m_fetcher (m_ccnxHandle, dataCallback)
- , m_publisher (m_ccnxHandle)
+ : m_appHandle (new CcnxWrapper())
+ , m_fetcher (m_appHandle, dataCallback)
+ , m_publisher (m_appHandle)
, m_syncLogic (syncPrefix,
bind (&AppDataFetch::onUpdate, m_fetcher, _1, _2, _3),
- bind (&AppDataFetch::onRemove, m_fetcher, _1),
- m_ccnxHandle)
+ bind (&AppDataFetch::onRemove, m_fetcher, _1))
{
}