summaryrefslogtreecommitdiff
path: root/channelcolumn.c
diff options
context:
space:
mode:
Diffstat (limited to 'channelcolumn.c')
-rw-r--r--channelcolumn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channelcolumn.c b/channelcolumn.c
index f43f33c..459411d 100644
--- a/channelcolumn.c
+++ b/channelcolumn.c
@@ -386,11 +386,13 @@ void cChannelColumn::SetTimers() {
#if VDRVERSNUM >= 20301
hasTimer = false;
const cSchedule *Schedule = NULL;
+ {
LOCK_SCHEDULES_READ;
const cSchedules* schedules = Schedules;
if (schedules) {
Schedule = schedules->GetSchedule(channel);
hasTimer = Schedule ? Schedule->HasTimer() : false;
+ }
}
#else
hasTimer = channel->HasTimer();