add more logging

This commit is contained in:
Master
2023-10-11 19:39:04 +02:00
parent f29922c26a
commit ef5dc6acaa
2 changed files with 16 additions and 7 deletions

View File

@@ -26,14 +26,14 @@ namespace AscNet.GameServer
public void Start()
{
for (; ; )
while (true)
{
try
{
listener.Start();
c.Log($"{nameof(GameServer)} started and listening on port {Common.Common.config.GameServer.Port}");
for (; ; )
while (true)
{
TcpClient tcpClient = listener.AcceptTcpClient();
string id = tcpClient.Client.RemoteEndPoint!.ToString()!;