Rework cRecManager::DeleteTimer

This commit is contained in:
kamel5 2019-07-10 15:17:14 +02:00
parent 549d42b487
commit 059936c6d7

View File

@ -176,14 +176,14 @@ void cRecManager::SetTimerPath(cTimer *timer, const cEvent *event, std::string p
} }
void cRecManager::DeleteTimer(int timerID) { void cRecManager::DeleteTimer(int timerID) {
const cTimer *t;
#if VDRVERSNUM >= 20301 #if VDRVERSNUM >= 20301
cTimer *t;
{ {
LOCK_TIMERS_WRITE; LOCK_TIMERS_READ;
t = Timers->Get(timerID); t = Timers->Get(timerID);
} }
#else #else
cTimer *t = Timers.Get(timerID); t = Timers.Get(timerID);
#endif #endif
if (!t) if (!t)
return; return;