Browse Source

Add new replacement condition in peer path redundancy logic to fix duplicate paths

pull/2/head
Joseph Henry 6 years ago
parent
commit
a1b2ff772a
  1. 3
      node/Peer.cpp

3
node/Peer.cpp

@ -139,6 +139,9 @@ void Peer::received(
if (q > replacePathQuality) {
replacePathQuality = q;
replacePath = i;
if (!_paths[i].p->alive(now)) {
break; // Stop searching, we found an identical dead path, replace the object
}
}
} else {
replacePath = i;

Loading…
Cancel
Save