fix: fire and forget aka double start of Task
All checks were successful
Test if Server can be built / build-server (push) Successful in 24s

This commit is contained in:
Timothy Schenk 2023-10-27 18:16:26 +02:00
parent fa52bf66f8
commit 59ba0ece7f

View file

@ -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);