mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 19:13:38 +02:00
Merge branch 'atp' of https://github.com/birarda/hifi into protocol
This commit is contained in:
commit
a9cfcf241d
2 changed files with 3 additions and 7 deletions
|
@ -48,10 +48,6 @@ const NLPacket* SentPacketHistory::getPacket(uint16_t sequenceNumber) const {
|
|||
if (seqDiff < 0) {
|
||||
seqDiff += UINT16_RANGE;
|
||||
}
|
||||
auto packet = _sentPackets.get(seqDiff);
|
||||
if (packet) {
|
||||
return packet->get();
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return _sentPackets.get(seqDiff)->get();
|
||||
}
|
||||
|
|
|
@ -675,7 +675,7 @@ void ScriptEngine::run() {
|
|||
audioPacket->writePrimitive(sequence);
|
||||
|
||||
// send audio packet
|
||||
nodeList->sendPacket(std::move(audioPacket), node);
|
||||
nodeList->sendUnreliablePacket(audioPacket, node);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue