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
All checks were successful
Test if Server can be built / build-server (push) Successful in 24s
This commit is contained in:
parent
fa52bf66f8
commit
59ba0ece7f
1 changed files with 1 additions and 2 deletions
|
@ -88,8 +88,7 @@ public class AuthSession : TcpSession
|
||||||
var rawPacket = new RawPacket((OperationCode)opCode, dataBuffer, clientAliveTime, buffer[7],
|
var rawPacket = new RawPacket((OperationCode)opCode, dataBuffer, clientAliveTime, buffer[7],
|
||||||
buffer[4], this.Id, this);
|
buffer[4], this.Id, this);
|
||||||
|
|
||||||
var thread = new Thread(() => this.mediator.Send(rawPacket).Start()) { IsBackground = true };
|
_ = this.mediator.Send(rawPacket);
|
||||||
thread.Start();
|
|
||||||
|
|
||||||
this.logger.LogInformation("Connection from: {@RemoteEndpoint}", this.Socket.RemoteEndPoint?.ToString());
|
this.logger.LogInformation("Connection from: {@RemoteEndpoint}", this.Socket.RemoteEndPoint?.ToString());
|
||||||
base.OnReceived(decryptedBuffer.ToArray(), offset, decryptedBuffer.Length);
|
base.OnReceived(decryptedBuffer.ToArray(), offset, decryptedBuffer.Length);
|
||||||
|
|
Loading…
Reference in a new issue