summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2018-02-25 13:57:21 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2018-02-25 13:57:21 +0100
commite4af94d3f938fdbae91d010c8120794d4558b83f (patch)
tree6e72ae339ed3c97b73b0bef7c3b353e16b6c0b93 /menu.c
parentbf497f4aae5f78076a24ed4d9c0a79c2f824d63b (diff)
downloadvdr-e4af94d3f938fdbae91d010c8120794d4558b83f.tar.gz
vdr-e4af94d3f938fdbae91d010c8120794d4558b83f.tar.bz2
Combined Start/StopSVDRPServer/ClientHandler() into Start/StopSVDRPHandler()
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;
}