summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmltv2vdr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmltv2vdr.cpp b/xmltv2vdr.cpp
index ea9756d..443be17 100644
--- a/xmltv2vdr.cpp
+++ b/xmltv2vdr.cpp
@@ -47,10 +47,12 @@ cEPGExecutor::cEPGExecutor(cEPGSources *Sources) : cThread("xmltv2vdr importer")
void cEPGExecutor::Action()
{
if (!sources) return;
+ bool ret=false;
for (cEPGSource *epgs=sources->First(); epgs; epgs=sources->Next(epgs))
{
- if (epgs->Execute()) break; // TODO: check if we must execute second/third source!
+ if ((ret=epgs->Execute())) break; // TODO: check if we must execute second/third source!
}
+ if (ret) cSchedules::Cleanup(true);
}
// -------------------------------------------------------------