mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
Revert "hack the NodeList to take the socket on which pinged as active socket"
This reverts commit 5c7ac6d3a1
.
This commit is contained in:
parent
f8ee8044ca
commit
1c47b8a3e1
1 changed files with 4 additions and 8 deletions
|
@ -294,10 +294,6 @@ void NodeList::processNodeData(const HifiSockAddr& senderSockAddr, const QByteAr
|
|||
matchingNode->setLastHeardMicrostamp(usecTimestampNow());
|
||||
QByteArray replyPacket = constructPingReplyPacket(packet);
|
||||
writeDatagram(replyPacket, matchingNode, senderSockAddr);
|
||||
|
||||
// HACK for hacker dojo network demo
|
||||
matchingNode->setPublicSocket(senderSockAddr);
|
||||
matchingNode->activatePublicSocket();
|
||||
}
|
||||
|
||||
break;
|
||||
|
@ -833,13 +829,13 @@ SharedNodePointer NodeList::updateSocketsForNode(const QUuid& uuid,
|
|||
|
||||
// check if we need to change this node's public or local sockets
|
||||
if (publicSocket != matchingNode->getPublicSocket()) {
|
||||
// matchingNode->setPublicSocket(publicSocket);
|
||||
// qDebug() << "Public socket change for node" << *matchingNode;
|
||||
matchingNode->setPublicSocket(publicSocket);
|
||||
qDebug() << "Public socket change for node" << *matchingNode;
|
||||
}
|
||||
|
||||
if (localSocket != matchingNode->getLocalSocket()) {
|
||||
// matchingNode->setLocalSocket(localSocket);
|
||||
// qDebug() << "Local socket change for node" << *matchingNode;
|
||||
matchingNode->setLocalSocket(localSocket);
|
||||
qDebug() << "Local socket change for node" << *matchingNode;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue