From a7071f580e092b198ba3f1c44c1c67d9099d3611 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 10 Jan 2025 16:11:02 +0100 Subject: [PATCH] Added some missing locking --- timers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/timers.c b/timers.c index 664ead27..53b1bdf5 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 5.22 2025/01/07 10:46:22 kls Exp $ + * $Id: timers.c 5.23 2025/01/10 16:11:02 kls Exp $ */ #include "timers.h" @@ -1158,6 +1158,7 @@ const cTimer *cTimers::GetMatch(time_t t) const { static int LastPending = -1; const cTimer *t0 = NULL; + LOCK_SCHEDULES_READ; for (const cTimer *ti = First(); ti; ti = Next(ti)) { if (!ti->Remote() && !ti->Recording() && ti->Matches(t)) { if (ti->Pending()) {