Rework cRecManager::DeleteTimer

This commit is contained in:
kamel5 2019-07-10 15:17:14 +02:00
parent 549d42b487
commit 059936c6d7
1 changed files with 3 additions and 3 deletions

View File

@ -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;