From f1c9ad7a5e9b080f6c8f02abb4705d593122f86f Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 20 Mar 2005 14:18:04 +0100 Subject: [PATCH] No longer assigning expired events to timers --- timers.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/timers.c b/timers.c index 9d73456e..964dfcba 100644 --- a/timers.c +++ b/timers.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: timers.c 1.28 2005/03/20 13:13:02 kls Exp $ + * $Id: timers.c 1.29 2005/03/20 14:18:04 kls Exp $ */ #include "timers.h" @@ -610,6 +610,8 @@ void cTimers::SetEvents(void) Event = e; } } + if (Event && Event->EndTime() < now - EXPIRELATENCY && !Event->IsRunning()) + Event = NULL; ti->SetEvent(Schedule, Event); } }