Explicitly handle socket exceptions (Multiple servers running)

This commit is contained in:
Cj
2025-10-15 01:33:18 -04:00
parent 56026297cf
commit a1a3db783c
+8
View File
@@ -32,6 +32,14 @@ public static class Program
{
await StartServer(args);
}
catch (SocketException)
{
Console.WriteLine("=========================================================================================================");
Console.WriteLine("You have multiple servers running or another process using port 6969");
Console.WriteLine("=========================================================================================================");
Console.WriteLine("Press any key to exit...");
Console.ReadLine();
}
catch (Exception e)
{
Console.WriteLine("=========================================================================================================");