From f5920124428d23f9d1f55342f82c47f4e86e7a6c Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sat, 31 Mar 2018 18:07:08 +0200 Subject: [PATCH] Eliminate deadlock in "EditTimer" --- recmenumanager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recmenumanager.c b/recmenumanager.c index e6ff269..1c1a9e2 100644 --- a/recmenumanager.c +++ b/recmenumanager.c @@ -217,8 +217,11 @@ eOSState cRecMenuManager::StateMachine(eRecMenuState nextState) { case rmsEditTimer: { //edit timer for active event #if VDRVERSNUM >= 20301 + const cTimer *timer; + { LOCK_TIMERS_READ; - const cTimer *timer = recManager->GetTimerForEvent(event); + timer = recManager->GetTimerForEvent(event); + } #else cTimer *timer = recManager->GetTimerForEvent(event); #endif