diff --git a/recmanager.c b/recmanager.c index 01e9af8..c92e2a9 100644 --- a/recmanager.c +++ b/recmanager.c @@ -176,14 +176,14 @@ void cRecManager::SetTimerPath(cTimer *timer, const cEvent *event, std::string p } void cRecManager::DeleteTimer(int timerID) { + const cTimer *t; #if VDRVERSNUM >= 20301 - cTimer *t; { - LOCK_TIMERS_WRITE; + LOCK_TIMERS_READ; t = Timers->Get(timerID); } #else - cTimer *t = Timers.Get(timerID); + t = Timers.Get(timerID); #endif if (!t) return;