mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Rework cRecManager::DeleteTimer
This commit is contained in:
parent
549d42b487
commit
059936c6d7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user