mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 18:44:00 +02:00
remove extraneous debugging in NodeList
This commit is contained in:
parent
6fe0b0b124
commit
7d69c6f211
1 changed files with 1 additions and 5 deletions
|
@ -428,23 +428,19 @@ void NodeList::sendAssignment(Assignment& assignment) {
|
|||
}
|
||||
|
||||
Node* NodeList::addOrUpdateNode(sockaddr* publicSocket, sockaddr* localSocket, char nodeType, uint16_t nodeId) {
|
||||
qDebug() << "BEGIN:" << publicSocket << "and" << localSocket << "\n";
|
||||
|
||||
NodeList::iterator node = end();
|
||||
|
||||
if (publicSocket) {
|
||||
for (node = begin(); node != end(); node++) {
|
||||
qDebug() << "comparing to node with ID " << node->getNodeID() << "\n";
|
||||
if (node->matches(publicSocket, localSocket, nodeType)) {
|
||||
// we already have this node, stop checking
|
||||
qDebug() << "Matched node to existing\n";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (node == end()) {
|
||||
qDebug() << "We're considering this a new node!\n";
|
||||
qDebug() << publicSocket << "and" << localSocket << "\n";
|
||||
// we didn't have this node, so add them
|
||||
Node* newNode = new Node(publicSocket, localSocket, nodeType, nodeId);
|
||||
|
||||
|
|
Loading…
Reference in a new issue