Suffer
This commit is contained in:
parent
3cc35f52b8
commit
4fb57f9b7e
|
@ -1,5 +1,6 @@
|
||||||
using System.Buffers;
|
using System.Buffers;
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using Shared;
|
using Shared;
|
||||||
|
@ -57,8 +58,9 @@ public class Client : IDisposable {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (header.Type is not PacketType.Cap and not PacketType.Player)
|
if (header.Type is not PacketType.Cap and not PacketType.Player) {
|
||||||
Logger.Info($"About to receive {header.Type} + ({(short)header.Type}), {partTime} ({(short?) partTime})");
|
Logger.Info($"About to receive {header.Type} + ({(short)header.Type}), {partTime} ({(short?) partTime}) {new StackTrace().ToString()}");
|
||||||
|
}
|
||||||
|
|
||||||
await Socket!.SendAsync(data[..(Constants.HeaderSize + header.PacketSize)], SocketFlags.None);
|
await Socket!.SendAsync(data[..(Constants.HeaderSize + header.PacketSize)], SocketFlags.None);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue