This is the correct fix.

This commit is contained in:
JoelKatz
2013-04-07 21:55:20 -07:00
parent 56fe0457d6
commit 3f3374d1d8

View File

@@ -423,7 +423,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) <<