From 9a30560f536c78099b13d690ffd8e48147e1ab47 Mon Sep 17 00:00:00 2001 From: JCW Date: Thu, 18 Sep 2025 09:31:37 +0100 Subject: [PATCH] Fix the bug Signed-off-by: JCW --- src/xrpld/core/JobQueue.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xrpld/core/JobQueue.h b/src/xrpld/core/JobQueue.h index fb5ab1ea06..73e0f9e332 100644 --- a/src/xrpld/core/JobQueue.h +++ b/src/xrpld/core/JobQueue.h @@ -65,6 +65,7 @@ public: private: enum class CoroState { None, Suspended, Running, Finished }; + std::atomic_bool exiting_ = false; detail::LocalValues lvs_; JobQueue& jq_; JobType type_; @@ -76,8 +77,6 @@ public: boost::coroutines::asymmetric_coroutine::pull_type coro_; boost::coroutines::asymmetric_coroutine::push_type* yield_; - std::atomic_bool exiting_ = false; - public: // Private: Used in the implementation template