diff --git a/src/sectionsd/sectionsd.cpp b/src/sectionsd/sectionsd.cpp index 14560811a..0d04a48fb 100644 --- a/src/sectionsd/sectionsd.cpp +++ b/src/sectionsd/sectionsd.cpp @@ -777,9 +777,10 @@ static void addEvent(const SIevent &evt, const unsigned table_id, const time_t z readLockEvents(); MySIeventsOrderUniqueKey::iterator si = mySIeventsOrderUniqueKey.find(evt.uniqueKey()); bool already_exists = (si != mySIeventsOrderUniqueKey.end()); - if (already_exists && ( (evt.table_id == si->second->table_id && evt.version != si->second->version) || evt.version == 0xFF || si->second->version == 0xFF ) ) + if (already_exists && ( (evt.table_id == si->second->table_id && evt.version > si->second->version ) || si->second->version == 0xFF ) ) { //replace event if new version + dprintf("replacing event version old 0x%02x new 0x%02x'\n", si->second->version, evt.version ); already_exists = false; } else if (already_exists && (evt.table_id < si->second->table_id))