Code cleanup

This commit is contained in:
Stone_Red
2023-02-06 15:15:47 +01:00
parent 7d662dc113
commit fb21a9f492
10 changed files with 235 additions and 237 deletions
@@ -43,7 +43,7 @@ internal class BroadcastClient
byte[] sendbuf = Encoding.ASCII.GetBytes(message);
IPEndPoint ep = new IPEndPoint(broadcast, port);
socket.SendTo(sendbuf, ep);
_ = socket.SendTo(sendbuf, ep);
}
public void StartListening(int port)
@@ -58,7 +58,7 @@ internal class BroadcastClient
udpListener = new UdpClient(port);
IPEndPoint groupEP = new IPEndPoint(IPAddress.Any, port);
Task.Run(() =>
_ = Task.Run(() =>
{
while (IsListening)
{