Skip to content

Commit

Permalink
no need for isGettingData
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryQuan committed Sep 24, 2023
1 parent dcf33c5 commit 0504d73
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions RS/RS/Service/LocalServer.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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;
Expand Down Expand Up @@ -50,11 +46,6 @@ private void ResponseThread()
{
while (true)
{
if (isGettingData)
{
return;
}

Console.WriteLine("Request received");

var ARENA = gamepath + @"\replays\tempArenaInfo.json";
Expand All @@ -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
Expand All @@ -83,7 +73,6 @@ private void ResponseThread()
Console.WriteLine(ex.Message);
break;
}
isGettingData = false;
}
}
}
Expand Down

0 comments on commit 0504d73

Please sign in to comment.