mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 02:56:31 +02:00
packet API changes in AssignmentClientMonitor
This commit is contained in:
parent
922dd5a739
commit
5a57e9861c
1 changed files with 5 additions and 4 deletions
|
@ -195,8 +195,8 @@ void AssignmentClientMonitor::checkSpares() {
|
||||||
SharedNodePointer childNode = nodeList->nodeWithUUID(aSpareId);
|
SharedNodePointer childNode = nodeList->nodeWithUUID(aSpareId);
|
||||||
childNode->activateLocalSocket();
|
childNode->activateLocalSocket();
|
||||||
|
|
||||||
QByteArray diePacket = nodeList->byteArrayWithPopulatedHeader(PacketTypeStopNode);
|
NodeListPacket diePacket = NodeListPacket::create(PacketType::StopNode);
|
||||||
nodeList->writeUnverifiedDatagram(diePacket, childNode);
|
nodeList->sendPacket(diePacket, childNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -229,8 +229,9 @@ void AssignmentClientMonitor::readPendingDatagrams() {
|
||||||
} else {
|
} else {
|
||||||
// tell unknown assignment-client child to exit.
|
// tell unknown assignment-client child to exit.
|
||||||
qDebug() << "asking unknown child to exit.";
|
qDebug() << "asking unknown child to exit.";
|
||||||
QByteArray diePacket = nodeList->byteArrayWithPopulatedHeader(PacketTypeStopNode);
|
|
||||||
nodeList->writeUnverifiedDatagram(diePacket, senderSockAddr);
|
NodeListPacket diePacket = NodeListPacket::create(PacketType::StopNode);
|
||||||
|
nodeList->sendPacket(diePacket, childNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue