mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Don't abort on a path that's dry because we entered with no funds.
This commit is contained in:
@@ -1829,6 +1829,11 @@ TER RippleCalc::calcNodeFwd (const unsigned int uNode, PathState& psCur, const b
|
||||
terResult = calcNodeFwd (uNode + 1, psCur, bMultiQuality);
|
||||
}
|
||||
|
||||
if (tesSUCCESS == terResult && (!psCur.saInPass || !psCur.saOutPass))
|
||||
{
|
||||
terResult = tecPATH_DRY;
|
||||
}
|
||||
|
||||
WriteLog (lsDEBUG, RippleCalc) << boost::str (boost::format ("calcNodeFwd< uNode=%d terResult=%d") % uNode % terResult);
|
||||
|
||||
return terResult;
|
||||
|
||||
Reference in New Issue
Block a user