1
0

Fixed protocol 1.7 recovery after unknown packet.

This commit is contained in:
madmaxoft 2013-12-12 23:05:02 +01:00
parent cd35bd2c49
commit f3c9ea0ed2

View File

@ -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;