From 92012cf45e0dc183e3aa4c76873cd696939e8f13 Mon Sep 17 00:00:00 2001 From: lukeIam Date: Sun, 1 Dec 2013 15:09:18 +0100 Subject: [PATCH] Webserver: -mod: disable discover server (yet not implemented in clientapp) --- Vocaluxe/Base/Server/CVocaluxeServer.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Vocaluxe/Base/Server/CVocaluxeServer.cs b/Vocaluxe/Base/Server/CVocaluxeServer.cs index 820318b1..27c79700 100644 --- a/Vocaluxe/Base/Server/CVocaluxeServer.cs +++ b/Vocaluxe/Base/Server/CVocaluxeServer.cs @@ -37,15 +37,12 @@ namespace Vocaluxe.Base.Server static class CVocaluxeServer { private static CServer _Server; - private static CDiscover _Discover; - private static Dictionary _Clients; + //private static CDiscover _Discover; public static readonly CControllerFramework Controller = new CControllerFramework(); public static void Init() { - _Clients = new Dictionary(); - _Server = new CServer(CConfig.ServerPort, CConfig.ServerEncryption == EOffOn.TR_CONFIG_ON); CServer.SendKeyEvent = _SendKeyEvent; @@ -72,7 +69,7 @@ namespace Vocaluxe.Base.Server CServer.RemovePlaylist = _RemovePlaylist; CServer.AddPlaylist = _AddPlaylist; - _Discover = new CDiscover(CConfig.ServerPort, CCommands.BroadcastKeyword); + //_Discover = new CDiscover(CConfig.ServerPort, CCommands.BroadcastKeyword); Controller.Init(); } @@ -81,15 +78,14 @@ namespace Vocaluxe.Base.Server if (CConfig.ServerActive == EOffOn.TR_CONFIG_ON) { _Server.Start(); - _Discover.StartBroadcasting(); + //_Discover.StartBroadcasting(); } } public static void Close() { _Server.Stop(); - _Discover.Stop(); - _Clients = new Dictionary(); + //_Discover.Stop(); } private static bool _SendKeyEvent(string key)