Fix mishandling of PACKET_SERVER_MAP_BEGIN queuing at server

This could result in broken packet framing in the TCP stream
This commit is contained in:
Jonathan G Rennison
2021-05-21 00:58:24 +01:00
parent 7c706923f8
commit 7677d2d01a
3 changed files with 25 additions and 18 deletions

View File

@@ -44,7 +44,7 @@ public:
NetworkRecvStatus CloseConnection(bool error = true) override;
void SendPacket(std::unique_ptr<Packet> packet);
void SendPrependPacket(std::unique_ptr<Packet> packet);
void SendPrependPacket(std::unique_ptr<Packet> packet, int queue_after_packet_type);
void SendPacket(Packet *packet)
{