diff --git a/src/xrpld/core/Coro.ipp b/src/xrpld/core/Coro.ipp index 02eed4c709..353944f529 100644 --- a/src/xrpld/core/Coro.ipp +++ b/src/xrpld/core/Coro.ipp @@ -47,10 +47,8 @@ JobQueue::Coro::Coro( self = shared_from_this(); fn(self); } - { - state_ = CoroState::Finished; - cv_.notify_all(); - } + state_ = CoroState::Finished; + cv_.notify_all(); }, boost::coroutines::attributes(megabytes(1))) {