diff options
Diffstat (limited to 'xmltv2vdr.cpp')
-rw-r--r-- | xmltv2vdr.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xmltv2vdr.cpp b/xmltv2vdr.cpp index 443be17..2f821a7 100644 --- a/xmltv2vdr.cpp +++ b/xmltv2vdr.cpp @@ -265,6 +265,7 @@ void cEPGSource::Store(void) umask(oldmask); if (!w) { + fclose(r); fclose(w); unlink(fname2); free(fname1); @@ -495,7 +496,15 @@ bool cPluginXmltv2vdr::Start(void) // Start any background activities the plugin shall perform. cParse::InitLibXML(); ReadInEPGSources(); - if (UpStart) exectime_t=time(NULL)+30; + if (UpStart) + { + exectime_t=time(NULL)+60; + } + else + { + exectime_t=time(NULL)-60; + last_exectime_t=exectime_t; + } return true; } |