diff --git a/node/Peer.cpp b/node/Peer.cpp index f99396aa..ad3d4710 100644 --- a/node/Peer.cpp +++ b/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;