Changes for locking in cChannelColumn::SetTimers()
This commit is contained in:
parent
b054fa2c12
commit
b086cf85dc
|
@ -386,12 +386,14 @@ 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();
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue