mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-28 08:38:46 +02:00
Fix size of statusPacket in AssignmentClient
This commit is contained in:
parent
a61fbff018
commit
e99df5b56d
1 changed files with 2 additions and 2 deletions
|
@ -169,14 +169,14 @@ void AssignmentClient::sendStatusPacketToACM() {
|
||||||
// tell the assignment client monitor what this assignment client is doing (if anything)
|
// tell the assignment client monitor what this assignment client is doing (if anything)
|
||||||
auto nodeList = DependencyManager::get<NodeList>();
|
auto nodeList = DependencyManager::get<NodeList>();
|
||||||
|
|
||||||
auto statusPacket = NLPacket::create(PacketType::AssignmentClientStatus, 1 + NUM_BYTES_RFC4122_UUID);
|
|
||||||
|
|
||||||
quint8 assignmentType = Assignment::Type::AllTypes;
|
quint8 assignmentType = Assignment::Type::AllTypes;
|
||||||
|
|
||||||
if (_currentAssignment) {
|
if (_currentAssignment) {
|
||||||
assignmentType = _currentAssignment->getType();
|
assignmentType = _currentAssignment->getType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto statusPacket = NLPacket::create(PacketType::AssignmentClientStatus, typeof(assignmentType) + NUM_BYTES_RFC4122_UUID);
|
||||||
|
|
||||||
statusPacket->write(nodeList->getSessionUUID().toRfc4122());
|
statusPacket->write(nodeList->getSessionUUID().toRfc4122());
|
||||||
statusPacket->writePrimitive(assignmentType);
|
statusPacket->writePrimitive(assignmentType);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue