Skip to content

Commit

Permalink
Update Server.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
wiiznokes committed Nov 14, 2023
1 parent 850f796 commit 06ece95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hardware/LibreHardwareMonitorWrapper/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private int StartServer()
{
_listener.Bind(new IPEndPoint(IPAddress.Parse(Address), p));
_listener.Listen(1);

}
catch (SocketException e)
{
Expand All @@ -145,10 +145,10 @@ private int StartServer()
}

throw new ArgumentException("No valid port can be found for " + Address);

}


// return client
private Socket AcceptClient()
{
Expand All @@ -164,7 +164,7 @@ private Socket AcceptClient()
}

client.Send(Encoding.UTF8.GetBytes(CheckResponse));

Console.WriteLine("Client accepted!");
return client;
}
Expand Down

0 comments on commit 06ece95

Please sign in to comment.