From 84811de871e42264a67de26d2dd55fc2ab09cbd1 Mon Sep 17 00:00:00 2001 From: Johann Friedrichs Date: Thu, 19 Sep 2019 19:53:09 +0200 Subject: Avoid lock sequence error when using Shift-Function --- menu_main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/menu_main.c b/menu_main.c index 30f7724..63ecf9a 100644 --- a/menu_main.c +++ b/menu_main.c @@ -317,8 +317,11 @@ void cMenuSearchMain::SetHelpKeys(bool Force) eOSState cMenuSearchMain::Shift(int iMinutes) { shiftTime += iMinutes; - LOCK_CHANNELS_READ; - const cChannel *channel = Channels->GetByNumber(currentChannel); + const cChannel *channel; + { + LOCK_CHANNELS_READ; + channel = Channels->GetByNumber(currentChannel); + } PrepareSchedule(channel); Display(); SetHelpKeys(); -- cgit v1.2.3