do not punch to replicant nodes

This commit is contained in:
Stephen Birarda 2017-06-12 11:42:46 -07:00
parent d5b466e3ae
commit 2929573cb0

View file

@ -712,6 +712,9 @@ void NodeList::pingPunchForInactiveNode(const SharedNodePointer& node) {
}
void NodeList::startNodeHolePunch(const SharedNodePointer& node) {
// 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);
@ -721,6 +724,7 @@ void NodeList::startNodeHolePunch(const SharedNodePointer& node) {
// ping this node immediately
pingPunchForInactiveNode(node);
}
}
void NodeList::handleNodePingTimeout() {
Node* senderNode = qobject_cast<Node*>(sender());