modify data publish class; get next seq instead of highest seq
diff --git a/model/sync-app-socket.cc b/model/sync-app-socket.cc
index 3dca250..fb6779d 100644
--- a/model/sync-app-socket.cc
+++ b/model/sync-app-socket.cc
@@ -46,7 +46,7 @@
bool SyncAppSocket::publish (const string &prefix, uint32_t session, const string &dataBuffer, int freshness)
{
m_publisher.publishData (prefix, session, dataBuffer, freshness);
- m_syncLogic.addLocalNames (prefix, session, m_publisher.getHighestSeq (prefix, session));
+ m_syncLogic.addLocalNames (prefix, session, m_publisher.getNextSeq (prefix, session));
}
}