Merge branch 'atp' of https://github.com/birarda/hifi into protocol

This commit is contained in:
Atlante45 2015-07-09 13:22:45 -07:00
commit a9cfcf241d
2 changed files with 3 additions and 7 deletions

View file

@ -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();
}

View file

@ -675,7 +675,7 @@ void ScriptEngine::run() {
audioPacket->writePrimitive(sequence);
// send audio packet
nodeList->sendPacket(std::move(audioPacket), node);
nodeList->sendUnreliablePacket(audioPacket, node);
}
});
}