mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:18:12 +02:00
only prepare packet list packets if they need a message number
This commit is contained in:
parent
cc9b72daa4
commit
30f55418db
1 changed files with 3 additions and 1 deletions
|
@ -65,7 +65,9 @@ void PacketQueue::queuePacket(PacketPointer packet) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void PacketQueue::queuePacketList(PacketListPointer packetList) {
|
void PacketQueue::queuePacketList(PacketListPointer packetList) {
|
||||||
packetList->preparePackets(getNextMessageNumber());
|
if (packetList->isOrdered()) {
|
||||||
|
packetList->preparePackets(getNextMessageNumber());
|
||||||
|
}
|
||||||
|
|
||||||
LockGuard locker(_packetsLock);
|
LockGuard locker(_packetsLock);
|
||||||
_channels.push_back(std::move(packetList->_packets));
|
_channels.push_back(std::move(packetList->_packets));
|
||||||
|
|
Loading…
Reference in a new issue