mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:49:05 +02:00
better variable naming for nodeToKill
This commit is contained in:
parent
f4cf1c0291
commit
3fba1f8445
1 changed files with 3 additions and 3 deletions
|
@ -1837,10 +1837,10 @@ void DomainServer::processNodeDisconnectRequestPacket(QSharedPointer<NLPacket> p
|
||||||
|
|
||||||
// we want to check what type this node was before going to kill it so that we can avoid sending the RemovedNode
|
// we want to check what type this node was before going to kill it so that we can avoid sending the RemovedNode
|
||||||
// packet to nodes that don't care about this type
|
// packet to nodes that don't care about this type
|
||||||
auto node = limitedNodeList->nodeWithUUID(nodeUUID);
|
auto nodeToKill = limitedNodeList->nodeWithUUID(nodeUUID);
|
||||||
|
|
||||||
if (node) {
|
if (nodeToKill) {
|
||||||
auto nodeType = node->getType();
|
auto nodeType = nodeToKill->getType();
|
||||||
limitedNodeList->killNodeWithUUID(nodeUUID);
|
limitedNodeList->killNodeWithUUID(nodeUUID);
|
||||||
|
|
||||||
static auto removedNodePacket = NLPacket::create(PacketType::DomainServerRemovedNode, NUM_BYTES_RFC4122_UUID);
|
static auto removedNodePacket = NLPacket::create(PacketType::DomainServerRemovedNode, NUM_BYTES_RFC4122_UUID);
|
||||||
|
|
Loading…
Reference in a new issue