Don't abort on a path that's dry because we entered with no funds.

This commit is contained in:
JoelKatz
2013-09-26 11:49:18 -07:00
committed by Vinnie Falco
parent 05a183e30a
commit 7cbe8572a3

View File

@@ -1815,6 +1815,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;