Eliminate deadlock in "EditTimer"

This commit is contained in:
kamel5 2018-03-31 18:07:08 +02:00 committed by kamel5
parent c6d01ba60b
commit f592012442

View File

@ -217,8 +217,11 @@ eOSState cRecMenuManager::StateMachine(eRecMenuState nextState) {
case rmsEditTimer: { case rmsEditTimer: {
//edit timer for active event //edit timer for active event
#if VDRVERSNUM >= 20301 #if VDRVERSNUM >= 20301
const cTimer *timer;
{
LOCK_TIMERS_READ; LOCK_TIMERS_READ;
const cTimer *timer = recManager->GetTimerForEvent(event); timer = recManager->GetTimerForEvent(event);
}
#else #else
cTimer *timer = recManager->GetTimerForEvent(event); cTimer *timer = recManager->GetTimerForEvent(event);
#endif #endif