mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Add packet flush when packet queue is full to Lobby and World servers
This commit is contained in:
@@ -40,6 +40,9 @@ namespace FFXIVClassic_Lobby_Server
|
|||||||
|
|
||||||
public void QueuePacket(BasePacket packet)
|
public void QueuePacket(BasePacket packet)
|
||||||
{
|
{
|
||||||
|
if (SendPacketQueue.Count == SendPacketQueue.BoundedCapacity - 1)
|
||||||
|
FlushQueuedSendPackets();
|
||||||
|
|
||||||
SendPacketQueue.Add(packet);
|
SendPacketQueue.Add(packet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -20,6 +20,9 @@ namespace FFXIVClassic_World_Server
|
|||||||
|
|
||||||
public void QueuePacket(BasePacket packet)
|
public void QueuePacket(BasePacket packet)
|
||||||
{
|
{
|
||||||
|
if (SendPacketQueue.Count == SendPacketQueue.BoundedCapacity - 1)
|
||||||
|
FlushQueuedSendPackets();
|
||||||
|
|
||||||
SendPacketQueue.Add(packet);
|
SendPacketQueue.Add(packet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user