From f3c9ea0ed2b99208117e40345cf1e39224831cf6 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Thu, 12 Dec 2013 23:05:02 +0100 Subject: [PATCH] Fixed protocol 1.7 recovery after unknown packet. --- src/Protocol/Protocol17x.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp index 75983e9a..f437c438 100644 --- a/src/Protocol/Protocol17x.cpp +++ b/src/Protocol/Protocol17x.cpp @@ -1031,8 +1031,6 @@ void cProtocol172::HandlePacket(UInt32 a_PacketType, UInt32 a_RemainingBytes) // Unknown packet type, report to the client: m_Client->PacketUnknown(a_PacketType); - m_ReceivedData.SkipRead(a_RemainingBytes); - m_ReceivedData.CommitRead(); } @@ -1045,8 +1043,6 @@ void cProtocol172::HandlePacketStatusPing(UInt32 a_RemainingBytes) if (a_RemainingBytes != 8) { m_Client->PacketError(0x01); - m_ReceivedData.SkipRead(a_RemainingBytes); - m_ReceivedData.CommitRead(); return; } Int64 Timestamp;