summaryrefslogtreecommitdiff
path: root/xmltv2vdr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xmltv2vdr.cpp')
-rw-r--r--xmltv2vdr.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/xmltv2vdr.cpp b/xmltv2vdr.cpp
index 2f821a7..9f7bf84 100644
--- a/xmltv2vdr.cpp
+++ b/xmltv2vdr.cpp
@@ -50,7 +50,22 @@ void cEPGExecutor::Action()
bool ret=false;
for (cEPGSource *epgs=sources->First(); epgs; epgs=sources->Next(epgs))
{
- if ((ret=epgs->Execute())) break; // TODO: check if we must execute second/third source!
+ int retries=0;
+ while (retries<2)
+ {
+ ret=epgs->Execute();
+ if (!ret)
+ {
+ dsyslog("xmltv2vdr: waiting 60 seconds (%i)",retries);
+ sleep(60);
+ retries++;
+ }
+ else
+ {
+ break;
+ }
+ }
+ if (ret) break; // TODO: check if we must execute second/third source!
}
if (ret) cSchedules::Cleanup(true);
}