diff --git a/src/sectionsd/sectionsd.cpp b/src/sectionsd/sectionsd.cpp index 00203c416..66e690c6f 100644 --- a/src/sectionsd/sectionsd.cpp +++ b/src/sectionsd/sectionsd.cpp @@ -1264,7 +1264,7 @@ static void removeOldEvents(const long seconds) return; } -#if 0 +#ifndef NO_REMOVE_DUPS /* Remove duplicate events (same Service, same start and endtime) * with different eventID. Use the one from the lower table_id. * This routine could be extended to remove overlapping events also, @@ -8370,7 +8370,7 @@ static void *cnThread(void *) unlockEvents(); // usleep(100); // lockEvents(); -#if 0 +#ifndef NO_REMOVE_DUPS removeDupEvents(); readLockEvents(); printf("[sectionsd] Removed %d dup events.\n", anzEventsAlt - mySIeventsOrderUniqueKey.size());