mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-22 03:05:16 +00:00
Clamp packet size on Send<T>
This commit is contained in:
parent
860f5c242b
commit
b173e53826
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ public class Client : IDisposable {
|
|||
Type = Constants.PacketMap[typeof(T)].Type
|
||||
};
|
||||
Server.FillPacket(header, packet, memory.Memory);
|
||||
await Send(memory.Memory, sender);
|
||||
await Send(memory.Memory[..Constants.MaxPacketSize], sender);
|
||||
memory.Dispose();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue