diff --git a/Server/AuthSession.cs b/Server/AuthSession.cs index 7b0d1cd..bdc3168 100644 --- a/Server/AuthSession.cs +++ b/Server/AuthSession.cs @@ -88,8 +88,7 @@ public class AuthSession : TcpSession var rawPacket = new RawPacket((OperationCode)opCode, dataBuffer, clientAliveTime, buffer[7], buffer[4], this.Id, this); - var thread = new Thread(() => this.mediator.Send(rawPacket).Start()) { IsBackground = true }; - thread.Start(); + _ = this.mediator.Send(rawPacket); this.logger.LogInformation("Connection from: {@RemoteEndpoint}", this.Socket.RemoteEndPoint?.ToString()); base.OnReceived(decryptedBuffer.ToArray(), offset, decryptedBuffer.Length);