From 50cc1cf0c97f6f3cbf8deb6e532804d3196fa319 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 02b46c81e91..f2aa363f934 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; }