mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 00:56:48 +02:00
fix a bug in version mismatched packets
This commit is contained in:
parent
988c98d4d7
commit
37d7872677
1 changed files with 2 additions and 2 deletions
|
@ -80,11 +80,11 @@ NodeList::~NodeList() {
|
|||
clear();
|
||||
}
|
||||
|
||||
bool NodeList::packetVersionAndHashMatch(const QByteArray& packet) {
|
||||
bool NodeList::packetVersionAndHashMatch(const QByteArray& packet) {
|
||||
if (packet[1] != versionForPacketType(packetTypeForPacket(packet))
|
||||
&& packetTypeForPacket(packet) != PacketTypeStunResponse) {
|
||||
PacketType mismatchType = packetTypeForPacket(packet);
|
||||
int numPacketTypeBytes = arithmeticCodingValueFromBuffer(packet.data());
|
||||
int numPacketTypeBytes = numBytesArithmeticCodingFromBuffer(packet.data());
|
||||
|
||||
qDebug() << "Packet version mismatch on" << packetTypeForPacket(packet) << "- Sender"
|
||||
<< uuidFromPacketHeader(packet) << "sent" << qPrintable(QString::number(packet[numPacketTypeBytes])) << "but"
|
||||
|
|
Loading…
Reference in a new issue