diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-28 15:10:27 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-28 15:10:27 +0100 |
commit | a0f12dbc79d53d6390464e3bb903d5f1d3baa579 (patch) | |
tree | 774215b1407406cb7773f9f28aea332b503676e2 /timers.c | |
parent | b395bd614acc6045832a5050c3bd3cc8a37c89c0 (diff) | |
download | vdr-a0f12dbc79d53d6390464e3bb903d5f1d3baa579.tar.gz vdr-a0f12dbc79d53d6390464e3bb903d5f1d3baa579.tar.bz2 |
Fixed cTimers::GetNextActiveTimer() so that it won't return an expired timer
Diffstat (limited to 'timers.c')
-rw-r--r-- | timers.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: timers.c 1.44 2006/01/27 15:35:17 kls Exp $ + * $Id: timers.c 1.45 2006/01/28 15:09:05 kls Exp $ */ #include "timers.h" @@ -567,7 +567,7 @@ cTimer *cTimers::GetNextActiveTimer(void) { cTimer *t0 = NULL; for (cTimer *ti = First(); ti; ti = Next(ti)) { - if ((ti->HasFlags(tfActive)) && (!t0 || ti->Compare(*t0) < 0)) + if ((ti->HasFlags(tfActive)) && (!t0 || ti->StopTime() > time(NULL) && ti->Compare(*t0) < 0)) t0 = ti; } return t0; |