This commit is contained in:
Filip Maj 2019-06-17 23:29:34 -04:00
commit 29ec6a9a88
5 changed files with 47 additions and 10 deletions

View file

@ -41,11 +41,17 @@ namespace FFXIVClassic_World_Server
public void QueuePacket(BasePacket packet)
{
if (SendPacketQueue.Count == SendPacketQueue.BoundedCapacity - 1)
FlushQueuedSendPackets();
SendPacketQueue.Add(packet);
}
public void QueuePacket(SubPacket subpacket)
{
if (SendPacketQueue.Count == SendPacketQueue.BoundedCapacity - 1)
FlushQueuedSendPackets();
bool isAuthed = true;
bool isEncrypted = false;
subpacket.SetTargetId(owner.sessionId);