summaryrefslogtreecommitdiff
path: root/global.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2009-02-07 00:14:30 +0100
committerJochen Dolze <vdr@dolze.de>2009-02-07 00:14:30 +0100
commitce9f6ffc44cc41dfbe9320650391ddcef5d86d3d (patch)
treecf2ed0a901a077597df786c3c6401cc323751b23 /global.cpp
parent7d0c10a7e07a075d464364df7c1e75c444ced316 (diff)
downloadvdr-plugin-infosatepg-ce9f6ffc44cc41dfbe9320650391ddcef5d86d3d.tar.gz
vdr-plugin-infosatepg-ce9f6ffc44cc41dfbe9320650391ddcef5d86d3d.tar.bz2
Fixed bug while receiving data over midnight and before wakeup time
Diffstat (limited to 'global.cpp')
-rw-r--r--global.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/global.cpp b/global.cpp
index 0ba2b8c..b975b78 100644
--- a/global.cpp
+++ b/global.cpp
@@ -395,7 +395,9 @@ bool cGlobalInfosatepg::ReceivedAll(int *Day, int *Month)
{
// New day, but new data is ready only after wakeup-time
time_t Now = time(NULL);
- time_t Time = cTimer::SetTime(Now,cTimer::TimeToInt(WakeupTime()));
+ time_t Time;
+ if (WakeupTime()==-1) Time=Now+1; // No wakeup set, just wait
+ else Time = cTimer::SetTime(Now,cTimer::TimeToInt(WakeupTime()));
if (Now>=Time)
{
// new day and new data should be available