This is the correct fix.

This commit is contained in:
JoelKatz
2013-04-07 21:55:20 -07:00
parent c6cea1d072
commit 3c98070d43

View File

@@ -425,7 +425,8 @@ bool Pathfinder::findPaths(const unsigned int iMaxSteps, const unsigned int iMax
// wrong currency
nothing();
}
else if (spPath.hasSeen(uPeerID, speEnd.mCurrencyID, uPeerID) && (uPeerID != mSrcAccountID))
else if (spPath.hasSeen(uPeerID, speEnd.mCurrencyID, uPeerID) ||
((uPeerID == mSrcAccountID) && (uPeerID != mDstAccountID)))
{
// Peer is in path already. Ignore it to avoid a loop.
cLog(lsTRACE) <<