Skip to content

Commit a1b2ff7

Browse files
committed
Add new replacement condition in peer path redundancy logic to fix duplicate paths
1 parent dc784f6 commit a1b2ff7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

node/Peer.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ void Peer::received(
139139
if (q > replacePathQuality) {
140140
replacePathQuality = q;
141141
replacePath = i;
142+
if (!_paths[i].p->alive(now)) {
143+
break; // Stop searching, we found an identical dead path, replace the object
144+
}
142145
}
143146
} else {
144147
replacePath = i;

0 commit comments

Comments
 (0)