Add packet flush when packet queue is full to Lobby and World servers

This commit is contained in:
Yogurt committed 2019-06-08 23:02:49 -07:00
1 parent a996797beb
commit 324026874a
2 files changed
+6

No files matched your search

@@ -40,6 +40,9 @@ namespace FFXIVClassic_Lobby_Server
public void QueuePacket(BasePacket packet)
{
if (SendPacketQueue.Count == SendPacketQueue.BoundedCapacity - 1)
FlushQueuedSendPackets();
SendPacketQueue.Add(packet);
}
@@ -20,6 +20,9 @@ namespace FFXIVClassic_World_Server
public void QueuePacket(BasePacket packet)
{
if (SendPacketQueue.Count == SendPacketQueue.BoundedCapacity - 1)
FlushQueuedSendPackets();
SendPacketQueue.Add(packet);
}