summaryrefslogtreecommitdiff
path: root/pages/timers.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/timers.ecpp')
-rw-r--r--pages/timers.ecpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/pages/timers.ecpp b/pages/timers.ecpp
index 771a907..ff3fd40 100644
--- a/pages/timers.ecpp
+++ b/pages/timers.ecpp
@@ -75,15 +75,14 @@ static const size_t maximumDescriptionLength = 300;
<table class="listing" cellspacing="0" cellpadding="0">
<%cpp>
// output of the timer list:
-#if VDRVERSNUM >= 20301
- /* JJJ: Lock this inside the loop */
- LOCK_SCHEDULES_READ;
-#endif
for (SortedTimers::iterator timer = timers.begin(); timer != timers.end(); ++timer) {
EpgInfoPtr epgEvent;
string longDescription;
#if VDRVERSNUM >= 20301
- if (!timer->Event()) timer->SetEventFromSchedule(Schedules);
+ if (!timer->Event()) {
+ LOCK_SCHEDULES_READ;
+ timer->SetEventFromSchedule(Schedules);
+ }
#else
if (!timer->Event()) timer->SetEventFromSchedule();
#endif