From 76a7bed57561285b1c32ac8d7a6c68dc607c3d39 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Wed, 16 Sep 2020 13:35:30 +0200 Subject: Fixed a possible invalid lock sequence in cMenuTimers::OnOff() --- menu.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'menu.c') diff --git a/menu.c b/menu.c index c0dceb38..e680efc3 100644 --- a/menu.c +++ b/menu.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 4.83 2020/07/01 15:05:17 kls Exp $ + * $Id: menu.c 4.84 2020/09/16 13:35:30 kls Exp $ */ #include "menu.h" @@ -1326,8 +1326,10 @@ eOSState cMenuTimers::OnOff(void) if (!ExecSVDRPCommand(Timer->Remote(), cString::sprintf("MODT %d %s", Timer->Id(), *Timer->ToText(true)), &Response) || SVDRPCode(Response[0]) != 250) RemoteTimerError(Timer); } - LOCK_SCHEDULES_READ; - Timer->SetEventFromSchedule(Schedules); + { + LOCK_SCHEDULES_READ; + Timer->SetEventFromSchedule(Schedules); + } RefreshCurrent(); DisplayCurrent(true); if (Timer->FirstDay()) -- cgit v1.2.3