From c1c2a9b3a66115412b06168062c27823cdd5bb7e Mon Sep 17 00:00:00 2001 From: Ed Hennis Date: Thu, 12 Oct 2023 13:10:35 -0400 Subject: [PATCH] fix(PathRequest): remove incorrect assert (#4743) The assert is saying that the only reason `pathFinder` would be null is if the request was aborted (connection dropped, etc.). That's what `continueCallback()` checks. But that is very clearly not true if you look at `getPathFinder`, which calls `findPaths`, which can return false for many reasons. Fix #4744 --- src/ripple/app/paths/PathRequest.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ripple/app/paths/PathRequest.cpp b/src/ripple/app/paths/PathRequest.cpp index 5d950e3b1..ae95a6d9f 100644 --- a/src/ripple/app/paths/PathRequest.cpp +++ b/src/ripple/app/paths/PathRequest.cpp @@ -538,7 +538,6 @@ PathRequest::findPaths( continueCallback); if (!pathfinder) { - assert(continueCallback && !continueCallback()); JLOG(m_journal.debug()) << iIdentifier << " No paths found"; continue; }