mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 22:30:42 +02:00
do not punch to replicant nodes
This commit is contained in:
parent
d5b466e3ae
commit
2929573cb0
1 changed files with 11 additions and 7 deletions
|
@ -712,14 +712,18 @@ void NodeList::pingPunchForInactiveNode(const SharedNodePointer& node) {
|
|||
}
|
||||
|
||||
void NodeList::startNodeHolePunch(const SharedNodePointer& node) {
|
||||
// connect to the correct signal on this node so we know when to ping it
|
||||
connect(node.data(), &Node::pingTimerTimeout, this, &NodeList::handleNodePingTimeout);
|
||||
|
||||
// start the ping timer for this node
|
||||
node->startPingTimer();
|
||||
// we don't hole punch to replicants, since it is assumed that we have a direct line to them
|
||||
if (node->getType() != NodeType::ReplicantAudioMixer && node->getType() != NodeType::ReplicantAvatarMixer) {
|
||||
// connect to the correct signal on this node so we know when to ping it
|
||||
connect(node.data(), &Node::pingTimerTimeout, this, &NodeList::handleNodePingTimeout);
|
||||
|
||||
// ping this node immediately
|
||||
pingPunchForInactiveNode(node);
|
||||
// start the ping timer for this node
|
||||
node->startPingTimer();
|
||||
|
||||
// ping this node immediately
|
||||
pingPunchForInactiveNode(node);
|
||||
}
|
||||
}
|
||||
|
||||
void NodeList::handleNodePingTimeout() {
|
||||
|
@ -1121,4 +1125,4 @@ void NodeList::setRequestsDomainListData(bool isRequesting) {
|
|||
|
||||
void NodeList::startThread() {
|
||||
moveToNewNamedThread(this, "NodeList Thread", QThread::TimeCriticalPriority);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue