mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:36:57 +02:00
fix sequence number read in PacketReceiver
This commit is contained in:
parent
4a11bdc22e
commit
023f3b8134
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ void PacketReceiver::handleVerifiedPacket(std::unique_ptr<udt::Packet> packet) {
|
||||||
// if this was a sequence numbered packet we should store the last seq number for
|
// if this was a sequence numbered packet we should store the last seq number for
|
||||||
// a packet of this type for this node
|
// a packet of this type for this node
|
||||||
if (SEQUENCE_NUMBERED_PACKETS.contains(nlPacket->getType())) {
|
if (SEQUENCE_NUMBERED_PACKETS.contains(nlPacket->getType())) {
|
||||||
matchingNode->setLastSequenceNumberForPacketType(packet->readSequenceNumber(), packet->getType());
|
matchingNode->setLastSequenceNumberForPacketType(nlPacket->readSequenceNumber(), nlPacket->getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
emit dataReceived(matchingNode->getType(), nlPacket->getDataSize());
|
emit dataReceived(matchingNode->getType(), nlPacket->getDataSize());
|
||||||
|
|
Loading…
Reference in a new issue