mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 22:30:42 +02:00
do not send keep alive pings to upstream nodes
This commit is contained in:
parent
880157695a
commit
63c8273a41
1 changed files with 3 additions and 1 deletions
|
@ -768,8 +768,10 @@ void NodeList::stopKeepalivePingTimer() {
|
|||
}
|
||||
|
||||
void NodeList::sendKeepAlivePings() {
|
||||
// send keep-alive ping packets to nodes of types we care about that are not relayed to us from an upstream node
|
||||
|
||||
eachMatchingNode([this](const SharedNodePointer& node)->bool {
|
||||
return _nodeTypesOfInterest.contains(node->getType());
|
||||
return !node->isUpstream() && _nodeTypesOfInterest.contains(node->getType());
|
||||
}, [&](const SharedNodePointer& node) {
|
||||
sendPacket(constructPingPacket(), *node);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue