mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:24:36 +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) {
|
Node* NodeList::addOrUpdateNode(sockaddr* publicSocket, sockaddr* localSocket, char nodeType, uint16_t nodeId) {
|
||||||
qDebug() << "BEGIN:" << publicSocket << "and" << localSocket << "\n";
|
|
||||||
NodeList::iterator node = end();
|
NodeList::iterator node = end();
|
||||||
|
|
||||||
if (publicSocket) {
|
if (publicSocket) {
|
||||||
for (node = begin(); node != end(); node++) {
|
for (node = begin(); node != end(); node++) {
|
||||||
qDebug() << "comparing to node with ID " << node->getNodeID() << "\n";
|
|
||||||
if (node->matches(publicSocket, localSocket, nodeType)) {
|
if (node->matches(publicSocket, localSocket, nodeType)) {
|
||||||
// we already have this node, stop checking
|
// we already have this node, stop checking
|
||||||
qDebug() << "Matched node to existing\n";
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node == end()) {
|
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
|
// we didn't have this node, so add them
|
||||||
Node* newNode = new Node(publicSocket, localSocket, nodeType, nodeId);
|
Node* newNode = new Node(publicSocket, localSocket, nodeType, nodeId);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue