1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

No longer assigning expired events to timers

This commit is contained in:
Klaus Schmidinger 2005-03-20 14:18:04 +01:00
parent db4701fd8f
commit f1c9ad7a5e

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "timers.h"
@ -610,6 +610,8 @@ void cTimers::SetEvents(void)
Event = e; Event = e;
} }
} }
if (Event && Event->EndTime() < now - EXPIRELATENCY && !Event->IsRunning())
Event = NULL;
ti->SetEvent(Schedule, Event); ti->SetEvent(Schedule, Event);
} }
} }