diff --git a/RS/RS/Service/LocalServer.cs b/RS/RS/Service/LocalServer.cs index cb7c4aa..8713669 100644 --- a/RS/RS/Service/LocalServer.cs +++ b/RS/RS/Service/LocalServer.cs @@ -1,8 +1,6 @@ using System; using System.IO; using System.Net; -using System.Net.Sockets; -using System.Runtime.Remoting.Contexts; using System.Text; using System.Threading; @@ -14,8 +12,6 @@ internal class LocalServer private Thread response = null; private readonly string gamepath; - private bool isGettingData = false; - public LocalServer(string gamePath) { gamepath = gamePath; @@ -50,11 +46,6 @@ private void ResponseThread() { while (true) { - if (isGettingData) - { - return; - } - Console.WriteLine("Request received"); var ARENA = gamepath + @"\replays\tempArenaInfo.json"; @@ -67,7 +58,6 @@ private void ResponseThread() // Get this file and send it as bytes json = File.ReadAllText(ARENA); Console.WriteLine("Reading the Arena file"); - isGettingData = true; } try @@ -83,7 +73,6 @@ private void ResponseThread() Console.WriteLine(ex.Message); break; } - isGettingData = false; } } }