diff --git a/src/sectionsd/sectionsd.cpp b/src/sectionsd/sectionsd.cpp index 9f64e7c23..3cf41b248 100644 --- a/src/sectionsd/sectionsd.cpp +++ b/src/sectionsd/sectionsd.cpp @@ -777,7 +777,7 @@ 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 ) ) + 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 );