diff --git a/apps/electron-backend/src/app/workers/epg-parser.worker.ts b/apps/electron-backend/src/app/workers/epg-parser.worker.ts index 62f5dfdaf..98e857b6e 100644 --- a/apps/electron-backend/src/app/workers/epg-parser.worker.ts +++ b/apps/electron-backend/src/app/workers/epg-parser.worker.ts @@ -499,9 +499,7 @@ class StreamingEpgParser { this.totalPrograms++; if (this.programs.length >= PROGRAM_BATCH_SIZE) { - if(this.channels.length) { - this.flushChannels(); - } + this.flushChannels(); this.flushPrograms(); } this.currentProgram = null;