summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2020-09-16 13:35:30 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2020-09-16 13:35:30 +0200
commit76a7bed57561285b1c32ac8d7a6c68dc607c3d39 (patch)
treed5a3515e66ef094002d82d0150a68cfc8e7a2225
parent46b480c798c2d5f4acb8874f25e5129f2cf7f224 (diff)
downloadvdr-76a7bed57561285b1c32ac8d7a6c68dc607c3d39.tar.gz
vdr-76a7bed57561285b1c32ac8d7a6c68dc607c3d39.tar.bz2
Fixed a possible invalid lock sequence in cMenuTimers::OnOff()
-rw-r--r--HISTORY1
-rw-r--r--menu.c8
2 files changed, 6 insertions, 3 deletions
diff --git a/HISTORY b/HISTORY
index 040d080d..345f89b0 100644
--- a/HISTORY
+++ b/HISTORY
@@ -9519,3 +9519,4 @@ Video Disk Recorder Revision History
- Fixed handling newline characters in ci.c's CopyString() (reported by Winfried Köhler).
- Fixed checking the return value of the Open() call in cFileName::SetOffset() (reported
by Winfried Köhler).
+- Fixed a possible invalid lock sequence in cMenuTimers::OnOff().
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())