From 3e4cb67db969e575aefdda10cc6dd6e66b857679 Mon Sep 17 00:00:00 2001 From: JCW Date: Thu, 2 Oct 2025 14:26:03 +0100 Subject: [PATCH] Fix error Signed-off-by: JCW --- src/xrpld/core/detail/JobQueue.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xrpld/core/detail/JobQueue.cpp b/src/xrpld/core/detail/JobQueue.cpp index 6b04459982..344d50210e 100644 --- a/src/xrpld/core/detail/JobQueue.cpp +++ b/src/xrpld/core/detail/JobQueue.cpp @@ -305,6 +305,10 @@ JobQueue::stop() // get suspended and yield() will return immediately, so we can safely // move m_suspendedCoros, and we can assume that no coroutine will be // suspended in the future. + if (queueState_ == QueueState::Stopped) + { + return; + } auto accepting = QueueState::Accepting;