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
parent 4c3f059819
commit 8cca807ea1

View File

@@ -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;