diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2018-02-25 13:57:21 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2018-02-25 13:57:21 +0100 |
commit | e4af94d3f938fdbae91d010c8120794d4558b83f (patch) | |
tree | 6e72ae339ed3c97b73b0bef7c3b353e16b6c0b93 /menu.c | |
parent | bf497f4aae5f78076a24ed4d9c0a79c2f824d63b (diff) | |
download | vdr-e4af94d3f938fdbae91d010c8120794d4558b83f.tar.gz vdr-e4af94d3f938fdbae91d010c8120794d4558b83f.tar.bz2 |
Combined Start/StopSVDRPServer/ClientHandler() into Start/StopSVDRPHandler()
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 21 |
1 files changed, 9 insertions, 12 deletions
@@ -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; } |