mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +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
|
||||
// packet to nodes that don't care about this type
|
||||
auto node = limitedNodeList->nodeWithUUID(nodeUUID);
|
||||
auto nodeToKill = limitedNodeList->nodeWithUUID(nodeUUID);
|
||||
|
||||
if (node) {
|
||||
auto nodeType = node->getType();
|
||||
if (nodeToKill) {
|
||||
auto nodeType = nodeToKill->getType();
|
||||
limitedNodeList->killNodeWithUUID(nodeUUID);
|
||||
|
||||
static auto removedNodePacket = NLPacket::create(PacketType::DomainServerRemovedNode, NUM_BYTES_RFC4122_UUID);
|
||||
|
|
Loading…
Reference in a new issue