mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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) {
|
||||
packetList->preparePackets(getNextMessageNumber());
|
||||
if (packetList->isOrdered()) {
|
||||
packetList->preparePackets(getNextMessageNumber());
|
||||
}
|
||||
|
||||
LockGuard locker(_packetsLock);
|
||||
_channels.push_back(std::move(packetList->_packets));
|
||||
|
|
Loading…
Reference in a new issue