summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/menu.c b/menu.c
index c5020e6b..b12a31e9 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.63 2018/02/25 13:28:19 kls Exp $
+ * $Id: menu.c 4.64 2018/02/25 13:54:57 kls Exp $
*/
#include "menu.h"
@@ -4176,17 +4176,14 @@ eOSState cMenuSetupMisc::ProcessKey(eKeys Key)
if (data.SVDRPPeering != OldSVDRPPeering)
Set();
if (ModifiedSVDRPSettings) {
- StopSVDRPClientHandler();
- StopSVDRPServerHandler();
- StartSVDRPServerHandler();
- if (data.SVDRPPeering)
- StartSVDRPClientHandler();
- else {
- LOCK_TIMERS_WRITE;
- Timers->SetExplicitModify();
- if (Timers->StoreRemoteTimers(NULL, NULL))
- Timers->SetModified();
- }
+ StopSVDRPHandler();
+ {
+ LOCK_TIMERS_WRITE;
+ Timers->SetExplicitModify();
+ if (Timers->StoreRemoteTimers(NULL, NULL))
+ Timers->SetModified();
+ }
+ StartSVDRPHandler();
}
return state;
}