History

fix recursive mutex lock, conditional, logging

Stephen Birarda committed 10 years ago

Commit 441b6d21 parent bb68e773 files · +7 −5Browse files

Showing the changes to libraries/script-engine/src/UsersScriptingInterface.cpp (1 of 3 files). Show all

Unified · Split

libraries/script-engine/src/UsersScriptingInterface.cpp+5−3
@@ -21,10 +21,10 @@ void UsersScriptingInterface::ignore(const QUuid& nodeID) { · 20 unmodified lines
2121 auto nodeList = DependencyManager::get<NodeList>();
2222
2323 nodeList->eachMatchingNode([&nodeID](const SharedNodePointer& node)->bool {
24− if (node->getType() != NodeType::AudioMixer || node->getType() != NodeType::AvatarMixer) {
25− return false;
26− } else {
24+ if (node->getType() == NodeType::AudioMixer || node->getType() == NodeType::AvatarMixer) {
2725 return true;
26+ } else {
27+ return false;
2828 }
2929 }, [&nodeID, &nodeList](const SharedNodePointer& destinationNode) {
3030 // create a reliable NLPacket with space for the ignore UUID
@@ -33,6 +33,8 @@ void UsersScriptingInterface::ignore(const QUuid& nodeID) { · 2 unmodified lines
3333 // write the node ID to the packet
3434 ignorePacket->write(nodeID.toRfc4122());
3535
36+ qDebug() << "Sending packet to ignore node" << uuidStringWithoutCurlyBraces(nodeID);
37+
3638 // send off this ignore packet reliably to the matching node
3739 nodeList->sendPacket(std::move(ignorePacket), *destinationNode);
3840 });